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 origin/main into fix/521-errored-turn-annotation (Canvas: keep errored arg + #647's finished-only clear)

enesbae55aca10c7
diff --cc src/renderer/canvas/Canvas.tsx
index 489004d28,39da4a734..50ff0f590
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@@ -11047,16 -11066,13 +11078,21 @@@ export function Canvas()
// `e.verified` is the identity evidence for this very transition (hook-server labels it);
// it was in scope here and dropped on the floor before the store had a field for it.
if (e.state && !stuckRescueSkip)
- cs.setState(e.nodeId, e.state, e.agentId, e.newTurn, e.pendingId, e.verified)
+ cs.setState(
+ e.nodeId,
+ e.state,
+ e.agentId,
+ e.newTurn,
+ e.pendingId,
+ e.verified,
+ e.errored
+ )
- if (e.newTurn) an.clearForParent(e.nodeId) // genuine new turn → drop the previous fan-out
+ // A genuine new turn drops the previous fan-out — but only the cards that FINISHED
+ // (issue #547). Claude launches subagents async, so "waiting for N background agents to
+ // finish" is exactly the state in which the next prompt gets typed, and clearing a
+ // working card there loses it permanently (nothing rehydrates `byId`) while the agent
+ // keeps running — and blinds Eco's live-subagent guard into hibernating its parent.
+ if (e.newTurn) an.clearFinishedForParent(e.nodeId)
if (e.newTurn && e.task) {
// Prompt-prefix fallback for /loop|/schedule|/cron when the natural-language
// phrasing doesn't trigger the tool-based (recurring) detection.