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
Deleting the open file with unsaved changes asks to save it only after it is deleted #3781
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
Deleting the open file with unsaved changes asks to save it only after it is deleted. Cause: packages/web-pkg/src/components/AppTemplates/AppWrapper.vue:791-805 calls closeApp() after the delete, which runs the dirty check in onBeforeRouteLeave (:875).
Reproduction Steps
Open a text file and type something.
Top bar ⋮ → Delete.
Expected Outcome
A warning before deleting, or the editor closes without a save prompt.
Actual Outcome
The file is trashed first, then "Unsaved changes" appears. Save fails (PUT 412, GET 404, "updated outside this window"); Cancel leaves an editable editor on the trashed file.
Activity
AlexAndBear commentedon Oct 21, 2026
I'm not sure what should actually happen here:
kulmann commentedon Oct 23, 2026
^ this