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
Merge origin/main into fix/relay-guest-scope
review726500b1b109
diff --cc CLAUDE.mdindex 1578fe0b1,0de76dc3c..454aa187d--- a/CLAUDE.md+++ b/CLAUDE.md@@@ -729,21 -750,21 +750,36 @@@ interferes; status bar off, **mouse on*sessions survive when no client is attached. `src/shared/ssh.ts`'s `remoteTmuxConf` is the sameconfig for an SSH project's remote tmux.+**Exact tmux targets: every node id that becomes a `-t` goes through `exactPaneTarget` (`=name:`) or+`exactSessionTarget` (`=name`)** (`core/tmux-naming.ts`, security audit F1/F2, 2026-10). tmux resolves+a BARE target by exact name, then fnmatch, then PREFIX on a miss, and node ids end in a counter or a+random tail: with only `nt-term-abc-12` alive, `send-keys -t nt-term-abc-1` typed into it,+`capture-pane` read it and `display-message '#{pane_pid}'` named its process (measured, tmux 3.4).+That made every node-keyed verb (send-text, typed chat input, send-keys, capture, pane command/cwd,+pane owner, terminate-foreground, has-session, the control-mode shadow, an attach-only reattach) a way+to reach a DIFFERENT node, whether its own session was gone or the id was a relay peer's invention.+For an existing session `=name:` is the same pane the bare name was (current window, active pane,+re-measured with three windows and a split). An exact miss is `can't find session` (exit 1), except+`display-message`, which exits 0 with every format EMPTY — every parser here answers null for that.+On a REMOTE command line the target is single-quoted: zsh's EQUALS option expands a word starting+with `=`. Proven against a real tmux driving a real `PtyManager` (`pty-exact-target.realtmux.test.ts`).+A new tmux call site owes the same, and both helpers refuse a name `sessionName` did not produce.++ **Every synchronous tmux call on main is bounded (`TMUX_BOOT_CMD_TIMEOUT_MS`, 2 s, via+ `PtyManager.runTmuxSync`).** `ensureTmux`'s `source-file` runs before the first window exists, and+ `ensureUpdateEnvKeys`' `show-options` / `set-option` run on a spawn; unbounded, a server that accepts+ the connection and never answers held main for the wedge's whole lifetime (4.05 s in a repro, i.e.+ forever against a server that never recovers). The bound kills only our short-lived+ client (SIGKILL, so one that ignores SIGTERM cannot keep `execFileSync` waiting), never the server.+ A timeout is `console.warn`ed and fails open (tmux stays resolved; the spawn goes ahead); "no server+ yet" stays silent, as it always was. A timeout also ends the rest of that call's tmux work — the+ next `set-option` would only wait out the same wedge — and a `show-options` / `set-option` timeout+ starts `TMUX_UPDATE_ENV_COOLDOWN_MS` (60 s) in which `ensureUpdateEnvKeys` makes no tmux call at+ all: every spawn passes the account-scope names, so without it each later spawn on a slow server+ would stall main again (20 terminals ≈ 40 s). After it, the next spawn probes again. Proven against a real client in+ `pty-tmux-wedged.realtmux.test.ts`. A new sync tmux call goes through `runTmuxSync`, not a bare+ `execFileSync`.+**Every REMOTE tmux invocation starts with `remoteTmuxPathPrologue()`** (`shared/ssh.ts` — PATH**append**: `/opt/homebrew/bin`, `/usr/local/bin`, `/opt/local/bin`, `$HOME/.local/bin`): an sshexec channel gets a non-login shell, and on a macOS host Homebrew's `shellenv` lives in@@@ -10112,19 -10241,13 +10270,20 @@@ under one `$HOME`, with different bytes(and when a session's endpoint is dead, the script's failover can deliver its event to the othercore's endpoint).-**Known limitations** (full list in the doc): non-editors still receive cross-project presence and-`context:update` metadata (deploy one core per team); a viewer's socket backlog over 1 MB still+**Outbound to non-editors, since security audit (a)/(d)/F3/F4:** presence is rewritten per peer+(`createPresenceFilter`: only peers on a shared project, node references outside nulled, joins and+leaves synthesised as a peer moves), `context:update` needs a shared node behind its session (the+payload's `nodeId`, else the mirror's `nodesForAgentSession`; unattributable = dropped), a+Commenter's board comment is reduced to a comment's fields and rate-bounded per peer key+(`append-budget.ts`), and a shared folder that is the disk root, the home directory or an ancestor of+either or of the data dir is not a root at all (`share-root.ts`).++**Known limitations** (full list in the doc): a viewer's socket backlog over 1 MB stillpauses the shared pty through Stage 2 backpressure; the canvas authority's own limits (a project'snon-content fields stay last writer wins between tabs, the share-time window, oversized nodes, board- edits to another core, load-time repairs that are never cast, the GitHub issue summary modal's- "Agent runs" log on a relay tab) are under "Known limits" in the doc.+ edits to another core, load-time repairs that are never cast) are under "Known limits" in the doc;+ the GitHub issue summary modal reading its "Agent runs" log from this machine on a relay tab is under+ "Limitations (v1)".**Surfaces:** Desktop is full (joiner, plus approval and invite code in an owner's hosted tab, plusShare with team from any desktop OS onto a Linux host). Server Edition is the host (the `team` CLI,