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(super-tabs): forget a session's skill state once it leaves the roster (#1827)
0xken150523b0ad24ef
diff --git a/cli/src/superTabs/host.spec.ts b/cli/src/superTabs/host.spec.tsindex 6cad536f8..9809b4dee 100644--- a/cli/src/superTabs/host.spec.ts+++ b/cli/src/superTabs/host.spec.ts@@ -1641,7 +1641,7 @@ describe('built-in skill text after a CLI update', () => {holds.push({ match, until: new Promise<void>(resolve => { release = resolve }) })return release}- return { t, files, sent, refused, pass, rowRoles, texts, fetched, holdNext, setRefuse: (next: typeof refuse) => { refuse = next }, setGroups: (next: typeof groups) => { groups = next }, setMode: (next: typeof mode) => { skillMode = next } }+ return { t, files, sent, refused, pass, agents, rowRoles, texts, fetched, holdNext, setRefuse: (next: typeof refuse) => { refuse = next }, setGroups: (next: typeof groups) => { groups = next }, setMode: (next: typeof mode) => { skillMode = next } }}// Custom roles and skills per project (spec 2026-10-23): on Custom the roster names each agent's role and its text's@@ -1745,6 +1745,18 @@ describe('built-in skill text after a CLI update', () => {await f.pass(host, 1_000)expect(f.sent).toEqual([])})+ // Diego's issue, 2026-10-27: nothing deleted a session's skill state, so a daemon running for weeks kept an entry, with+ // the full Custom role text, for every Swarm agent it ever ran.+ it('forgets a session\'s skill state once it leaves the roster', async () => {+ const f = syncFixture(false, 'default')+ custom(f, 'Plan the work.\n')+ const host = await f.pass()+ const state = host as unknown as Record<'skillChecks' | 'skillModes' | 'roleTexts', Map<string, unknown>>+ expect(state.roleTexts.has('h-lead')).toBe(true)+ f.agents.splice(0, f.agents.length)+ await f.pass(host, 1_000)+ expect([state.skillChecks.size, state.skillModes.size, state.roleTexts.size]).toEqual([0, 0, 0])+ })it('leaves an agent whose role is gone on its file, fetching and telling nothing: the backend tells it', async () => {const f = syncFixture(false, 'default')f.rowRoles['a-builder'] = nulldiff --git a/cli/src/superTabs/host.ts b/cli/src/superTabs/host.tsindex 4587a92bc..401e3df0a 100644--- a/cli/src/superTabs/host.ts+++ b/cli/src/superTabs/host.ts@@ -662,6 +662,10 @@ export class SuperTabHost {for (const [harnessId, state] of this.keepAlives) if (!leads.has(harnessId) && !state.running) this.keepAlives.delete(harnessId)for (const [key, state] of this.endings) if (!ended.has(key) && !state.running) this.endings.delete(key)for (const deliveryId of this.unreadable) if (!seen.has(deliveryId)) this.unreadable.delete(deliveryId)+ // Diego's issue, 2026-10-27: kept for every session ever seen, a daemon running for weeks held each Custom role's text.+ for (const skills of [this.skillChecks, this.skillModes, this.roleTexts]) {+ for (const harnessId of skills.keys()) if (!this.rosterSkills.has(harnessId)) skills.delete(harnessId)+ }// A wait outlives a list that failed or was skipped: that says nothing of the delivery. It goes when a list that was read no// longer has the delivery, or when its agent is no longer here.for (const [key, retry] of this.deliveryRetries) {