Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(windows): do not promise Ctrl+Q as the quit chord on Windows
review578ec097d9d4
diff --git a/CLAUDE.md b/CLAUDE.mdindex 16cdaa88b..f7cca4012 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -729,7 +729,8 @@ Lifecycle, by intent:window into a notification-area tray (`main/tray.ts`, pure model `tray-model.ts`: Open / unread /phone-access status / Quit) so the phone relay host, hook server, notifications and updater keeprunning — the Dock analogue. A hide is not a quit, so no confirm dialog; tray **Quit** is plain- `app.quit()` (before-quit + confirm run as for Ctrl+Q — never set `quitting` before it, a cancelled+ `app.quit()` (before-quit + confirm run as for the menu Quit — File → Exit on Windows, where+ Electron's quit role has NO Ctrl+Q accelerator; never set `quitting` before it, a cancelledconfirm must leave the × hiding). Hide only while the tray actually EXISTS(`backgroundOnCloseActive`), so a failed tray never turns × into a hide with no way back. Theupdater/update-prep quits keep flipping `quitting` first, or a hidden window would block them.diff --git a/src/main/tray-model.ts b/src/main/tray-model.tsindex 86b37e56a..b1d9c9a50 100644--- a/src/main/tray-model.ts+++ b/src/main/tray-model.ts@@ -34,7 +34,7 @@ export function trayMenuModel(state: TrayState): TrayMenuItem[] {items.push({ type: 'normal', label: `Phone access: ${state.phoneAccess ? 'on' : 'off'}`, enabled: false })items.push({ type: 'separator' })// Quit goes through the ordinary app.quit() → before-quit path (confirm dialog included), so a- // tray quit tears down exactly what ⌘Q / Ctrl+Q does.+ // tray quit tears down exactly what the menu Quit (Ctrl+Q on Linux, File → Exit on Windows) does.items.push({ type: 'normal', label: 'Quit nodeterm', enabled: true, action: 'quit' })return items}diff --git a/src/renderer/lib/backgroundClose.test.ts b/src/renderer/lib/backgroundClose.test.tsindex 56945970a..fca03ed6e 100644--- a/src/renderer/lib/backgroundClose.test.ts+++ b/src/renderer/lib/backgroundClose.test.ts@@ -16,6 +16,11 @@ describe('backgroundCloseDescription', () => {expect(d).toContain('notification area')expect(d).toContain('Automatic keeps it running on Windows')})+ it('never promises Ctrl+Q on Windows (the quit role has no accelerator there)', () => {+ expect(backgroundCloseDescription(true)).not.toContain('Ctrl+Q')+ expect(backgroundCloseDescription(true)).toContain('File → Exit')+ expect(backgroundCloseDescription(false)).toContain('Ctrl+Q')+ })it('says Automatic quits on Linux (matches resolveBackgroundOnClose)', () => {const d = backgroundCloseDescription(false)expect(d).toContain('system tray')diff --git a/src/renderer/lib/backgroundClose.ts b/src/renderer/lib/backgroundClose.tsindex 39a44f527..771ca3d07 100644--- a/src/renderer/lib/backgroundClose.ts+++ b/src/renderer/lib/backgroundClose.ts@@ -11,5 +11,8 @@ export function backgroundCloseRowVisible(isMac: boolean, isBrowser: boolean): bexport function backgroundCloseDescription(isWindows: boolean): string {const where = isWindows ? 'notification area' : 'system tray'const auto = isWindows ? 'Automatic keeps it running on Windows.' : 'Automatic quits on Linux, where a tray icon depends on your desktop.'- return `Closing the window hides nodeterm to the ${where} so phone access, agent notifications and updates keep working. Quit from the tray icon or Ctrl+Q. ${auto}`+ // Electron's `quit` menu role has NO accelerator on Windows (it is "Exit", and Alt+F4 is a window+ // close — i.e. a hide here), so Ctrl+Q is only offered where it actually quits.+ const quitVia = isWindows ? 'the tray icon or File → Exit' : 'the tray icon or Ctrl+Q'+ return `Closing the window hides nodeterm to the ${where} so phone access, agent notifications and updates keep working. Quit from ${quitVia}. ${auto}`}