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 branch 'main' into feat/account-default-color
eneskircaea6cf750cac6
diff --cc src/renderer/state/workspace.tsindex b8f2688c9,eeefdac20..554161a82--- a/src/renderer/state/workspace.ts+++ b/src/renderer/state/workspace.ts@@@ -590,30 -588,15 +590,36 @@@ export function createAgentNode* agent, so passing a model for one is harmless — it's simply not appended). Persisted as* `data.agentModel` so cold-restore and later restarts keep the model. Trails `projectId`: every* existing caller passes that ninth argument, so the model is the one that had to move. */- model?: string+ model?: string,+ /** Absolute path to a file holding the first prompt (canvas-control `--prompt-file`). Wins over+ * `initialPrompt`; composed by the assembler as a `"$(cat …)"` substitution so a multi-line+ * brief survives the single-line typed delivery. Validated by the caller+ * (`promptFilePathError` + an existence check) — the factory trusts it. Trailing/optional so+ * every existing caller is unchanged. */+ promptFile?: string): CanvasNode {- const { label, color } = resolveAgent(agentId)+ const { label, color: agentColor } = resolveAgent(agentId)+ // Managed accounts bind to the builtin Claude and Codex agents (S6) — never to another builtin,+ // and never to a custom agent even when it inherits one of those bases. A custom agent inheriting+ // claude/codex is still its own agent; account binding stays with the builtin the account picker+ // offered it for. The Codex spawn side honours `data.accountId` (resolveCodexSessionScope), the+ // same field Claude uses. Extracted to one local so the stamped binding below and the account+ // color resolved from it cannot drift apart.+ const boundAccountId =+ accountId && (agentId === 'claude' || agentId === 'codex') ? accountId : undefined+ // A managed account's default node color (Settings → Accounts) replaces the agent's brand color,+ // so a second login of either builtin is recognizable on the canvas at a glance. `agentAccountColor`+ // asks the list that OWNS this agent's accounts — the two are keyed independently, so a Claude+ // account must never color a Codex node that happens to share its id.+ // `?? []` on both lists, matching the phone path in `src/main`: `mergeSettings` merges without+ // checking, so a hand-edited `"claudeAccounts": null` survives load and would throw on `.find`+ // one level ABOVE the `typeof color` guard — i.e. the very failure that guard exists to prevent.+ const settings = useSettings.getState().settings+ const color =+ agentAccountColor(agentId, boundAccountId, {+ claude: settings.claudeAccounts ?? [],+ codex: settings.codexAccounts ?? []+ }) ?? agentColor// The launch-command override (this project's `.nodeterm/settings.json` first, then Settings →// Agents → Launch commands — see `agentLaunchOverride`) replaces the bare CLI in the assembled// command. Threaded into the shared assembler below as `launchCmdOverride` so fresh launch,