Skip to content

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.

Merge branch 'dkattan-stack-top' into integrate/dkattan-stack

enes6835672fa1b3
diff --cc src/renderer/nodes/TerminalNode.tsx
index 990933647,f263e3de3..f09b37fc4
--- a/src/renderer/nodes/TerminalNode.tsx
+++ b/src/renderer/nodes/TerminalNode.tsx
@@@ -2413,13 -2427,8 +2427,14 @@@ export function TerminalNode(
shellArgs: localSsh ? buildSshArgs(ssh) : undefined,
cwd: data.cwd,
persistKey: id,
+ // The project that OWNS this node, for the runtime pane-ownership ledger (agent
+ // messaging, src/core/agents/pane-ownership.ts): the ssh project's own scope for a remote
+ // node, else the active project whose canvas this node lives on. Recorded main-side ONLY
+ // on a genuine fresh spawn, so a second project opening another's live node id cannot
+ // claim it. Machine-local id, never the git-shared project.json id.
+ ownerProjectId: sshProjectId ?? useProjects.getState().activeProjectId,
agentId: data.agentId,
+ agentModel: data.agentModel,
accountId: data.accountId,
sshRemote,
// Belt AND braces: the guard above cannot see a `ssh` executable that has gone missing,