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.

chore(chat): sweep the last dead chat references (worktree displacement branch, test comment)

enesdb23163489fd
diff --git a/src/renderer/state/workspace.mutation.test.ts b/src/renderer/state/workspace.mutation.test.ts
index 2ca7eb43a..551315d96 100644
--- a/src/renderer/state/workspace.mutation.test.ts
+++ b/src/renderer/state/workspace.mutation.test.ts
@@ -55,7 +55,7 @@ describe('applyMutationToFlow', () => {
expect(out[0].position).toEqual({ x: 50, y: 0 })
})
- // initialCommand / respawnNonce / forkFrom are deliberately not serialized. A peer's rename must
+ // initialCommand / respawnNonce are deliberately not serialized. A peer's rename must
// not silently drop them from a node that has not consumed them yet.
it('keeps local-only node data (initialCommand) while applying the peer\'s fields', () => {
const nodes = [
diff --git a/src/shared/worktree.ts b/src/shared/worktree.ts
index ac137fbd0..d8a9fe250 100644
--- a/src/shared/worktree.ts
+++ b/src/shared/worktree.ts
@@ -268,7 +268,7 @@ interface WorktreeNodeLike {
* that merely shares the prefix, no cwd at all) are NOT displaced — they were never affected, and
* rewriting them would be a change the user never asked for.
*
- * Terminal/chat displacement is GROUP-scoped (`under.has`) because a cwd match alone is too broad —
+ * Terminal displacement is GROUP-scoped (`under.has`) because a cwd match alone is too broad —
* plenty of terminals legitimately share a cwd with a worktree without living inside its frame.
* Editor/diff nodes get no such scoping: `createEditorNode`/`createDiffNode` never set a
* `parentId` (they float free on the canvas, `group: null`), so they are never a "descendant" of
@@ -286,7 +286,7 @@ export function displacedByWorktree(
const under = descendantIds(nodes, groupId)
const out = new Set<string>()
for (const n of nodes) {
- if (n.type === 'terminal' || n.type === 'chat') {
+ if (n.type === 'terminal') {
if (!under.has(n.id)) continue
const cwd = typeof n.data?.cwd === 'string' ? n.data.cwd : undefined
if (isInsideDir(cwd, worktreePath)) out.add(n.id)