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
P1: Prevent accidental app quit from silently stopping active work #1195
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
currentbits commentedon Sep 10, 2026
Landed from Solenta thread "P1: Prevent accidental app quit from silently stopping activ" (PR #1291). Closed on merge.