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
Merge remote-tracking branch 'origin/main' into feat/mobile-ios-android
Dev jacob8d85f14b0465
diff --cc cli/src/cli.tsindex b41e9574e,b0ca57204..6defe51bb--- a/cli/src/cli.ts+++ b/cli/src/cli.ts@@@ -2526,9 -2575,19 +2575,19 @@@ async function runForeground(session: Areturn summarizeTurnText(text, signal, userMessage, session?.engine ?? 'claude', gateway, previousRecap)},}- // An Orchestrator specialist's turn end, or the Director's while specialists are still out, is not- // announced: the person asked to hear from the main agent once, not from every sub-agent. The dial- // hears it as `silent` on its summary card; the apps as `subagent` on `turn_ended` (below).+ /**+ * A turn that belongs to a SUB-AGENT: an Orchestrator specialist, or its Director while specialists+ * are still out.+ *+ * Hoisted out of the commander's options because the dial is no longer the only screen that has to- * know. The cable learns it as `silent` on the summary card; the window learns it as `subagent` on- * `turn_ended` (see emitSessionEvents). One rule, asked twice — the two surfaces used to disagree++ * know. The cable learns it as `silent` on the summary card; the window and the phone learn it as++ * `subagent` on `turn_ended` (see emitSessionEvents) — the phone notifies on neither. One rule, asked twice — the two surfaces used to disagree+ * here, and a four-specialist project put ONE row on the dial and FIVE marks in the window.+ *+ * ⚠️ The commander ORs this with its own `abandoned` state — a held turn released because a+ * sub-agent went silent — which lives inside it and is not reachable from here. That case is rare+ * (a killed or crashed sub-agent) and costs the window one extra mark, not five.+ */const isSubagentSession = (sessionId: string): boolean => {const agentId = registry.bySession(sessionId)?.agentIdif (!agentId) return false@@@ -2687,14 -2748,14 +2748,20 @@@// skips these; every other consumer ignores an unknown field. Measured before this existed: one// agent credited with 42 turns in a single second, all re-reads.if (event.type === 'turn_started' && (opts?.resumed || opts?.replay)) frame.replay = true- // WHOSE turn ended, in the clear beside `agentId`, for the same reason `replay` is: the payload- // is E2EE and the window has to read this without opening it.- //- // The dial has always been told (`silent` on the summary card) and the window never was, so the- // two screens counted different things: an Orchestrator project of four specialists put ONE row- // on the dial and FIVE marks in the window. Same predicate for both now — see isSubagentSession.- // An older client ignores an unknown field, which is the behaviour it has today.- if (event.type === 'turn_ended' && isSubagentSession(sessionId)) frame.subagent = true+ // The end of a turn carries the two facts an app needs to decide whether it is NEWS, in the clear- // for the same reason: `replay` — a turn re-read from disk, not one finishing now — and `subagent`- // — the dial's `silent`, a specialist's turn nobody asked to hear about. The phone notifies on- // neither. Absent = false, so an app that predates these reads every end as it always did.++ // beside `agentId` for the same reason `replay` is — the payload is E2EE and the apps read this++ // without opening it:++ // `replay` — a turn re-read from disk, not one finishing now;++ // `subagent` — a specialist's turn nobody asked to hear about, the dial's `silent`. The dial has++ // always been told and the window never was, so an Orchestrator project of four++ // specialists put ONE row on the dial and FIVE marks in the window. Same predicate++ // for every screen now — see isSubagentSession.++ // The phone notifies on neither. Absent = false, so a client that predates these reads every end as++ // it always did.+ if (event.type === 'turn_ended') {+ if (opts?.resumed || opts?.replay) frame.replay = true+ if (isSubagentSession(sessionId)) frame.subagent = true+ }backend.send(frame)if (event.type === 'turn_started') {turnStartedAt.set(sessionId, Date.now())