stackblitz / webcontainer-core

Dev environments. In your web app.
https://webcontainers.io
MIT License
3.93k stars 171 forks source link

Not saving last steps after error #1622

Open youcodecowboy opened 2 days ago

youcodecowboy commented 2 days ago

Describe the bug

Repeatedly not saving the last 5-10 steps in the chat, however I can go back and fork the project and restore the last steps. Every time I reload the page I lose 4-5 of my last steps minimum.

Link to the blitz that caused the error

https://stackblitz.com/edit/sb1-wasiha?file=index.html

Steps to reproduce

Have a big file, have an error occur "overloaded" or "error reaching server" or "unexpected error" and reload page, instantly disappears

Expected behavior

Should reload at the correct up to date state

Parity with Local

Screenshots

Screenshot 2024-11-19 at 3 08 55 PM

"chat history might be incomplete"

Platform

Browser name  = Chrome
Full version  = 130.0.0.0
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 88232208,
  "usedJSHeapSize": 77442120,
  "jsHeapSizeLimit": 2160066560
}
Hash = f565b097

Additional context

No response