Skip to content

P1: Prevent accidental app quit from silently stopping active work #1195

Closed

Description

@currentbits

Outcome: an accidental quit shortcut does not terminate several active agents or terminal jobs without showing what will stop.

Evidence: T3 keybindings documents hold/double-press quit behavior. Solenta's electron/menu.js:47 uses native Quit; electron/shutdown.js:104 starts shutdown immediately on before-quit. electron/main.js:790 then stops runs, and teardown kills terminals/dev servers. There is no active-work decision before cleanup begins. Inspected at commit 9fc8645a2472e493a94c2e4c4c8a942974bff305.

Smallest scope: for an ordinary user-initiated quit with active runs, questions/approvals or managed terminal/server sessions, show a native dialog summarizing affected work: Cancel or Stop work and quit. No new custom hold-key state machine is necessary. Distinguish warm idle provider processes from active work. Give users a clear opt-out if repeated intentional quitting becomes friction.

Acceptance:

  • Cancel leaves runs, pending requests, terminals and servers intact; it must happen before any cleanup.
  • Confirm invokes the existing one-shot shutdown exactly once and persists state.
  • An idle app with no managed background work quits normally.
  • OS termination, SIGINT/SIGTERM and crash paths still perform bounded cleanup without waiting for a UI response.
  • Planned updater relaunch is handled explicitly so it neither bypasses active-work policy nor gets stuck in recursive quit dialogs.
  • Cover menu, shortcut and window-close behavior on supported platforms; macOS window close alone must retain existing semantics.

Dedup: #349 addresses recovery of approvals after restart, not prevention of unintended quit. This does not promise crash-proof continuation or restore arbitrary terminal jobs.

Activity

  1. added
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Sep 10, 2026
  2. currentbits commented on Sep 10, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "P1: Prevent accidental app quit from silently stopping activ" (PR #1291). Closed on merge.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions