Skip to content

"Unsaved changes" dialog hangs on Save while a save is running #3628

Closed

Description

@AlexAndBear

Initial Checklist

  • 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

  1. Open a text file in the text editor and change something.
  2. 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.
  3. 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.

Activity

  1. 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
  2. moved this from Qualification to Prio <= 3 in OpenCloud Team Boardon Oct 20, 2026
  3. self-assigned this
    on Nov 2, 2026
  4. moved this from Prio <= 3 to In Progress in OpenCloud Team Boardon Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions