Skip to content

Quit anyway still waits for the work before the power button #155

Backlog

Description

@A21-devs

workFirst offers Quit anyway with the detail "If the app quits now, no profile is made and the VM is not started again", and returns true for it. But if a VM is also running, the quit then goes through shutDownAllAndQuit, which does await this.workDone(n) per VM before pressing the power button (src/main/quitFlow.ts).

So Quit anyway with a profile save going waits for that save anyway, which can be minutes, and the app looks stuck: the window is in the tray, the tray says "Shutting down, quits when the VMs are off", and nothing says it is waiting for the save the user just said to abandon.

The per-VM wait is right when the user picked Shut down VMs and quit (a power button press in the middle of a hibernate turns it into a plain shutdown, see #121). It is wrong after Quit anyway.

Idea: have the quit path carry which answer it came from and skip workDone for Quit anyway, going straight to the power button or straight to the quit. tests/quitFlow.test.ts can cover both orderings with the fake host.

Found while adding tests in #150.

Activity

  1. added
    bug
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions