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
Swarm: a queued start in an archived task no longer blocks deleting its project (#2811)
Dee86ab5b162d6e
diff --git a/backend/src/superTabs/projects.test.ts b/backend/src/superTabs/projects.test.tsindex adf909a5c..0cd1a15df 100644--- a/backend/src/superTabs/projects.test.ts+++ b/backend/src/superTabs/projects.test.ts@@ -210,6 +210,29 @@ describe('projects inside an invite-only swarm', () => {expect(() => f.run({ type: 'agent.started', startId, harnessId: 'late', configuration })).toThrow('unavailable')})+ it('deletes past a queued start whose task is archived, which can never launch', () => {+ const f = setup(), p = f.project()+ const conversationId = f.task(p.projectId)+ const request = { conversationId, machineId: 'machine', engine: 'codex', name: 'Builder', cwd: '/work', worktree: true,+ requirements: { memoryBytes: 0, diskBytes: 0, maxCpuPercent: 100, tools: [], devices: [], quotaRequired: false } }+ f.run({ type: 'agent.start', request })+ f.state.conversations.find(c => c.id === conversationId)!.archived = true+ f.run({ type: 'project.delete', projectId: p.projectId })+ expect(projectsOf(f.state).map(p => p.id)).toEqual(['lead'])+ expect(f.state.starts).toEqual([])+ })++ it('still refuses a dispatched start in an archived task: its machine may be starting the agent', () => {+ const f = setup(), p = f.project()+ const conversationId = f.task(p.projectId)+ const request = { conversationId, machineId: 'machine', engine: 'codex', name: 'Builder', cwd: '/work', worktree: true,+ requirements: { memoryBytes: 0, diskBytes: 0, maxCpuPercent: 100, tools: [], devices: [], quotaRequired: false } }+ const startId = String(f.run({ type: 'agent.start', request }).startId)+ f.state.starts!.find(s => s.id === startId)!.dispatched = true+ f.state.conversations.find(c => c.id === conversationId)!.archived = true+ expect(() => f.run({ type: 'project.delete', projectId: p.projectId })).toThrow('pending agent starts')+ })+it('lets the owner or lead share a missing repository address once, without replacing it', () => {const f = setup(), p = f.project('public'), url = 'https://github.com/example/project'const share = (repositoryUrl: string): Command => ({ type: 'project.repository', projectId: p.projectId, repositoryUrl })diff --git a/backend/src/superTabs/projects.ts b/backend/src/superTabs/projects.tsindex 11f670842..5f2af48e0 100644--- a/backend/src/superTabs/projects.ts+++ b/backend/src/superTabs/projects.ts@@ -476,7 +476,12 @@ export function deleteProject(state: SuperTabState, actor: Actor, projectId: str// A person's one Buddy chat belongs to no project and stays; that project's sessions in it go with their agents.const groups = state.conversations.filter(c => !isLeads(c) && !isSwarmBuddyChat(c) && groupProject(state, c).id === project.id)const groupIds = new Set(groups.map(c => c.id))+ // A queued start in an archived conversation can never be dispatched (commands.ts open() refuses it), so it no longer+ // blocks the delete; it goes with the project's other starts below. On 2026-11-03 one queued two days earlier kept an+ // owner from deleting a cleaned-up project, and no command could settle it.+ const archived = new Set(groups.filter(c => c.archived).map(c => c.id))if (state.starts?.some(s => groupIds.has(s.request.conversationId) && !s.error &&+ !(!s.dispatched && !s.harnessId && archived.has(s.request.conversationId)) &&(!s.harnessId || s.poolGeneration && !s.poolSettled))) {fail('STARTS_PENDING', 'Resolve this project’s pending agent starts before deleting it.')}