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): preserve canvas nodes in update guidance
reviewea821f71a1ac
diff --git a/CLAUDE.md b/CLAUDE.mdindex 366f1ac71..f2336fa2a 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -4638,6 +4638,9 @@ allowed by `package.json`. `.github/workflows/win-package-smoke.yml` is aWindows installer safety (#829): `build/installer.nsh` overrides NSIS's process-killing check.A running app or session host blocks install/uninstall, and a failed process query blocks too.Never restore automatic host termination: quitting the app preserves those live sessions.+Update preparation must keep saved canvas nodes: exit programs normally, quit, then have the user+verify and stop any remaining host. Never recommend **End session** (it deletes nodes). Cold agent+resume depends on supported, saved conversation history; it does not preserve running tasks.See `docs/windows-session-host.md` for the user-controlled preparation/recovery steps and limits.**Follow-ups, in order:** code signing, then Windows auto-update wiring (electron-updater NSIS legdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 223ce9692..4073e3eef 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -59,6 +59,9 @@ handler needs something only Electron has (an SSH ControlMaster, a native dialogWindows installer safety (#829): `build/installer.nsh` overrides NSIS's process-killing check.A running app or session host blocks install/uninstall, and a failed process query blocks too.Never restore automatic host termination: quitting the app preserves those live sessions.+Update preparation must keep saved canvas nodes: exit programs normally, quit, then have the user+verify and stop any remaining host. Never recommend **End session** (it deletes nodes). Cold agent+resume depends on supported, saved conversation history; it does not preserve running tasks.See `docs/windows-session-host.md` for the user-controlled preparation/recovery steps and limits.## Three surfacesdiff --git a/build/installer.nsh b/build/installer.nshindex f26658784..27ca48f88 100644--- a/build/installer.nsh+++ b/build/installer.nsh@@ -13,9 +13,9 @@SetErrorLevel 2IfSilent nodeterm_preflight_cancel${If} $R0 == 10- MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "nodeterm, a background session host, or a process using the installation path is still running.$\r$\n$\r$\nClosing the app keeps terminal and agent sessions alive. Updating requires those sessions to end.$\r$\n$\r$\nCancel to keep working. When ready, save your work, reopen nodeterm, and end local sessions in every project (Sessions sidebar: End session). Quit nodeterm, wait at least 30 seconds for the host to exit, then retry.$\r$\n$\r$\nOther nodeterm installations and Windows users must also finish their sessions. Run this installer from Downloads, outside the install directory. This installer will not stop your sessions for you." /SD IDCANCEL IDRETRY nodeterm_preflight_retry+ MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "nodeterm or a process using its installation is running. Closing the app keeps sessions alive.$\r$\n$\r$\nCancel to save work in every local session. Exit agents and shells normally; keep canvas nodes. Quit nodeterm and wait at least 30 seconds.$\r$\n$\r$\nIf the host remains, verify its user and executable path in Task Manager Details, then end only that host. All processes it owns will stop. Saved nodes remain; agent resume needs supported, saved conversation history and cannot recover unsaved work.$\r$\n$\r$\nOther installations/users must prepare their own sessions too. Retry from Downloads, outside the install directory. This installer will not stop your sessions for you." /SD IDCANCEL IDRETRY nodeterm_preflight_retry${Else}- MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "nodeterm could not verify whether the app or its background session host is running. No sessions have been stopped.$\r$\n$\r$\nCancel and check that Windows PowerShell and process queries are available. If another Windows user is running nodeterm, ask them to save and end their sessions before retrying." /SD IDCANCEL IDRETRY nodeterm_preflight_retry+ MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "nodeterm could not verify whether the app or its background session host is running. No sessions have been stopped.$\r$\n$\r$\nCancel and check that Windows PowerShell and process queries are available. If another Windows user is running nodeterm, ask them to save work, exit agents and shells normally, and quit nodeterm. If their host remains, its owner must verify and stop it in Task Manager before retrying; keep saved canvas nodes." /SD IDCANCEL IDRETRY nodeterm_preflight_retry${EndIf}nodeterm_preflight_cancel:Quitdiff --git a/docs/windows-session-host.md b/docs/windows-session-host.mdindex b0e667ba7..9a6677b0c 100644--- a/docs/windows-session-host.md+++ b/docs/windows-session-host.md@@ -381,20 +381,34 @@ path prefix without a directory boundary. Another installation (even a sibling dname begins with this installation's name) can therefore block an update. The new preflight mustcover those legacy targets before invoking the old executable; it never stops them on your behalf.-To update when you are ready to end sessions:--1. Cancel the installer and reopen nodeterm if you already quit it. Save work in local terminals- and agents, including those in closed/other projects and sessions accessed from a phone.-2. Use **End session** in the Sessions sidebar for each local session. This ends its process and- removes its node; do not mistake closing a project or quitting the app for ending a session.- Shells may also be exited normally once their work is saved.-3. Quit nodeterm, wait at least 30 seconds after the last session ends, and run the installer again- from Downloads, outside the installation directory. Other installations/users must finish their- sessions too. Do not reopen the app or start sessions while installation is in progress.-4. If the host remains, keep the installer cancelled and inspect Windows Task Manager's Details- view. Verify the executable path belongs to this installation. Ending that exact host manually- is a last resort **only if you accept losing every terminal/agent process it owns**; never use- a machine-wide name-based kill. A host shared by another Windows user requires their decision.+To update while keeping your saved canvas:++1. Cancel the installer and reopen nodeterm if you already quit it. Save work in every local+ terminal and agent, including closed/other projects and sessions accessed from a phone.+ Let active tasks finish, then use each program's normal exit command and exit its shell.+ Leave the canvas nodes in place. **Do not use Sessions → End session or delete nodes to prepare+ for an update**: those actions remove nodes, rather than just stopping their processes.+2. Quit nodeterm normally so workspace changes are saved and it cannot start replacement sessions.+ Wait at least 30 seconds after the last shell exits for the empty host to shut down naturally.+ Quitting the app alone does not empty the host; a host with sessions will remain running.+3. If the host remains, keep the installer cancelled. In Windows Task Manager's **Details** view,+ verify the user and executable path of `nodeterm-session-host.exe` for this installation.+ After saving work and accepting that **every terminal/agent process owned by that host will+ stop**, end only that verified host. This is a manual process shutdown, not a graceful agent+ exit, so complete step 1 first. Do not use a machine-wide name-based kill. If the host uses+ the fallback name `nodeterm.exe`, verify its identity/path rather than guessing which process+ to end. Another Windows user's host requires that user's decision.+4. Run the installer from Downloads, outside the installation directory, or Retry its preflight.+ Other nodeterm installations/users must prepare their own sessions too if they block the check.+ Do not reopen the app or start sessions while installation is in progress.++Stopping the host after quitting leaves saved node metadata (positions, groups, agent/session+identities) and existing closed-session history in place; it does not call the node-deletion path+or add deletion entries to `closedSessions`. Reopen nodeterm after installation to use those nodes.+This is **cold recovery**, not preservation of live processes: shell jobs and unsaved terminal state+are lost. An agent can resume only when its harness supports resume, nodeterm has saved a valid+conversation id, and the matching account's conversation history is still available. A saved node+alone does not guarantee resume, restore an in-flight task, or recover unsaved work.New installers run this check before invoking the previous version's uninstaller. Already shippedinstallers/uninstallers cannot be patched retroactively; use the same preparation steps for them.diff --git a/scripts/windows-update-preflight.test.ts b/scripts/windows-update-preflight.test.tsindex b0c9c7dad..7016076f3 100644--- a/scripts/windows-update-preflight.test.ts+++ b/scripts/windows-update-preflight.test.ts@@ -81,8 +81,6 @@ describe('NSIS safety wiring', () => {expect(include).toMatch(/SetErrorLevel 2\s+IfSilent nodeterm_preflight_cancel/)expect(include).toMatch(/nodeterm_preflight_cancel:\s+Quit/)expect(include.match(/\/SD IDCANCEL/g)).toHaveLength(2)- expect(include).toContain('wait at least 30 seconds')- expect(include).toContain('This installer will not stop your sessions')const production = include + fs.readFileSync(script, 'utf8')expect(production).not.toMatch(/\b(?:Stop-Process|taskkill|KILL_PROCESS|_CHECK_APP_RUNNING|Set-ExecutionPolicy)\b/i)})