The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Hold a harness's viewer and verdict pushes until its terminal is attached
deea8f0124b90b7
diff --git a/cli/src/cli.ts b/cli/src/cli.tsindex 3636903f3..43d69052d 100644--- a/cli/src/cli.ts+++ b/cli/src/cli.ts@@ -1379,11 +1379,19 @@ async function runForeground(session: AuthSession): Promise<void> {}}dshFrameContextRef = dshFrameContext+ // A companion's news (a viewer URL, a verdict) is pushed on the agent's frame — but only once+ // the agent's terminal is attached. During a daemon start the viewer is often up before the+ // pane is re-attached, and a frame with no terminal reads to the desktop as "agent gone": it+ // closed the tiles of every harness agent on every restart (seen 2026-09-15, three times). The+ // attach's own sync carries whatever arrived first.+ const syncCompanion = (agentId: string): void => {+ const session = registry.byAgent(agentId)+ if (session && registry.terminalAvailable(agentId)) syncSession(session)+ }const dshViewers = new DshViewerManager({onUrl: (agentId, url) => {dshFrameFor(agentId).viewerUrl = url- const session = registry.byAgent(agentId)- if (session) syncSession(session)+ syncCompanion(agentId)},log: (line) => console.log(line),})@@ -1392,8 +1400,7 @@ async function runForeground(session: AuthSession): Promise<void> {dshFrameFor(agentId).verdict = verdict// The verdict's artifact is what the viewer should show, when it names one.dshViewers.setVerdictArtifact(agentId, verdict?.artifact ?? null)- const session = registry.byAgent(agentId)- if (session) syncSession(session)+ syncCompanion(agentId)},log: (line) => console.log(line),})