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
fix(cable): a Swarm focus sent again after a dial reboot is logged again (#2018)
harness-for-autonomous[bot]106d139ab08e
diff --git a/cli/src/cable/cableSession.spec.ts b/cli/src/cable/cableSession.spec.tsindex 981a78015..a576318e2 100644--- a/cli/src/cable/cableSession.spec.ts+++ b/cli/src/cable/cableSession.spec.ts@@ -4040,6 +4040,22 @@ describe('swarm cards', () => {} finally { await session.stop() }})+ it('logs a focus sent again after the dial came back on new firmware, though the line is the same', async () => {+ const lines: string[] = []+ const state = { cards: [card('st1')], open: { superTabId: 'st1', projectId: 'proj2', fromDevice: false } as { superTabId: string; projectId: string; fromDevice: boolean } | null }+ const { session, port } = await connect(cardHost(state, { log: (l) => lines.push(l) }))+ const sent = () => lines.filter((l) => l === 'cable: swarm focus st1/proj2 → lead2')+ try {+ port.say({ ...PRO, fw: '0.0.93' })+ await vi.waitFor(() => expect(ofType(port, 'supertab.focus')).toHaveLength(1))+ expect(sent()).toHaveLength(1)+ // Diego's dial, 2026-10-28: the update rebooted it and it greeted again on 0.0.94. The focus went again, unlogged.+ port.say({ ...PRO, fw: '0.0.94' })+ await vi.waitFor(() => expect(ofType(port, 'supertab.focus')).toHaveLength(2))+ expect(sent()).toHaveLength(2)+ } finally { await session.stop() }+ })+it('a project the list does not hold yet is followed when the list arrives', async () => {const state = { cards: [] as SwarmCard[], open: { superTabId: 'st1', projectId: 'proj1', fromDevice: false } }const { session, port } = await connect(cardHost(state))diff --git a/cli/src/cable/cableSession.ts b/cli/src/cable/cableSession.tsindex a81fed114..997a6a30d 100644--- a/cli/src/cable/cableSession.ts+++ b/cli/src/cable/cableSession.ts@@ -2772,6 +2772,8 @@ export class CableSession {const lead = open.projectId ? card.leads.find((l) => l.projectId === open.projectId) : undefinedif (open.projectId && !lead) { this.logFocus(`cable: swarm focus ${named} · held: no Lead for that project`); return }this.focusedKey = key+ // A send is always logged: one again after the dial rebooted on an update read as "never sent" (Diego's dial, 2026-10-28).+ this.focusLogged = ''this.logFocus(`cable: swarm focus ${named} → ${lead ? lead.id : 'its Leads'}`)await this.send({ t: 'supertab.focus', tab: open.superTabId, lead: lead?.id ?? '' })}