Skip to content

Deleting the open file with unsaved changes asks to save it only after it is deleted #3781

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

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

  1. Open a text file and type something.
  2. 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.

Screenshot

Activity

  1. self-assigned this
    on Oct 13, 2026
  2. moved this from In Progress to Needs Review in OpenCloud Team Boardon Oct 13, 2026
  3. moved this from Needs Review to Blocked in OpenCloud Team Boardon Oct 20, 2026
  4. AlexAndBear commented on Oct 21, 2026

    @AlexAndBear
    MemberAuthor

    I'm not sure what should actually happen here:

    • just move the file to the bin without saving
    • silently save the file and then move it to the bin
    • open the unsaved changes dialog and move the file to the bin after the user decided
  5. kulmann commented on Oct 23, 2026

    @kulmann
    Member
    • silently save the file and then move it to the bin

    ^ this

  6. moved this from Blocked to In Progress in OpenCloud Team Boardon Oct 23, 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