You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Unsaved changes" dialog hangs on Save while a save is running #3628
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
The "Unsaved changes" dialog of AppWrapper hangs when a save is already running: clicking Save in it does nothing, the dialog never closes and further clicks have no effect. It's in AppWrapper, so every editor is affected (seen with the text editor and an app from web-extensions).
saveFileTask uses .drop() (packages/web-pkg/src/components/AppTemplates/AppWrapper.vue). save() awaits saveFileTask.perform(), but vue-concurrency never runs a dropped instance, so its promise never settles (vue-concurrency/dist/index.js: c.drop ? e.isDropped = !0 : ...). The dialog's onConfirm (await save() in onBeforeRouteLeave) therefore never returns. The same applies to every other await save() while a save is running (e.g. Ctrl+S twice quickly, autosave during a manual save), it just isn't visible there.
A possible fix: in save(), wait for a running save first (if (saveFileTask.isRunning) await saveFileTask.last), or switch the task to .enqueue() / .keepLatest(), so a second save writes the latest content instead of being dropped.
Reproduction Steps
Open a text file in the text editor and change something.
Press Ctrl+S and, while the PUT is still running (easy with a slow network or by delaying the request in devtools), click the app's Close button.
The "Unsaved changes" dialog opens; click Save.
Expected Outcome
The dialog waits for the running save (or saves again) and closes the app.
Actual Outcome
The dialog stays open forever. The content is saved by the first request, but the app can only be left via Don't save or Cancel.
changed the title [-]AppWrapper: "Unsaved changes" dialog hangs on Save while a save is running[/-][+]"Unsaved changes" dialog hangs on Save while a save is running[/+]on Oct 9, 2026
Activity
[-]AppWrapper: "Unsaved changes" dialog hangs on Save while a save is running[/-][+]"Unsaved changes" dialog hangs on Save while a save is running[/+]