stackblitz / webcontainer-core

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

Project Restarting #1584

Open adunel001 opened 2 weeks ago

adunel001 commented 2 weeks ago

Describe the bug

I've noticed that while working on a project and decide to take a break, or close my browser, returning to the project have me starting all over again.

  1. Switching browsers, sometime the bolt website just goes blank with an error prompting me to refresh, and that just get me to start all over from the beginning. These ends up burning off my tokens without results.

Link to the blitz that caused the error

https://stackblitz.com/edit/sb1-a2wmdk?file=.gitignore

Steps to reproduce

Start working on a project switch to another browser or switch to other tabs on the browser and leave it for a while Switch back to the bolt tab, or browser, and you could get a refresh or error page there Else, refresh the page and you get the project starting all over again to the firsts prompt output.

Expected behavior

I should be able to continue from where I left off at anytime, or have an option to save status if I have to. If it has to refresh and start over, then the Tokens should countdown, back to the point the refresh stops.

Parity with Local

Screenshots

No response

Platform

Browser name  = Firefox
Full version  = 132.0
Major version = 132
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
performance.memory = undefined
Hash = 34c588ed

Additional context

No response