wokwi-features icon indicating copy to clipboard operation
wokwi-features copied to clipboard

When unlocking a project to save changes, you lose your changes.

Open sutaburosu opened this issue 4 weeks ago • 0 comments
trafficstars

Describe the bug I lost my changes when trying to save, due to the "Lock project" function.

I had a saved sketch which was locked to prevent accidental changes. I had not pinned library versions, so it compiled today instead of serving a cached version. I saw build failures due to library updates.

To Reproduce After editing the project to bring it up-to-date with ~6-years of library changes, I pressed "Save" which said something like "Cannot save: sketch is locked". I visited the menu and unlocked the project which refreshed the page, losing my changes.

Expected behavior At least, there should be a "Leaving this page will lose your changes" dialogue box from the browser, similar to what I get when trying to close a tab with unsaved changes.

Much love to you and your family, Uri. ❤️

PS: I love that the "Save" button is greyed out, but if you click it it gives the "Project is locked for changes" message. That is a nice touch, and it was what reminded me of the possibility of locking a project.

sutaburosu avatar Oct 26 '25 21:10 sutaburosu