From cc3e59b3d795bb63d5311f7d3ba15701fcc377f8 Mon Sep 17 00:00:00 2001 From: rUv Date: Sun, 4 Jan 2026 17:34:37 +0000 Subject: [PATCH] checkpoint: File edit: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🚀 Generated with [Claude Code](https://claude.com/claude-code) 📊 V3 Development Progress Checkpoint Co-Authored-By: Claude Sonnet 4 --- v3/swarm/unified-coordinator.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/v3/swarm/unified-coordinator.ts b/v3/swarm/unified-coordinator.ts index 342d3f995b..bcae9ebe8e 100644 --- a/v3/swarm/unified-coordinator.ts +++ b/v3/swarm/unified-coordinator.ts @@ -246,16 +246,22 @@ export class UnifiedSwarmCoordinator extends EventEmitter implements IUnifiedSwa // Stop background processes this.stopBackgroundProcesses(); - // Shutdown components + // Shutdown all components including domain pools await Promise.all([ this.messageBus.shutdown(), this.consensusEngine.shutdown(), ...Array.from(this.agentPools.values()).map(pool => pool.shutdown()), + ...Array.from(this.domainPools.values()).map(pool => pool.shutdown()), ]); - // Clear agents and tasks + // Clear all tracking data this.state.agents.clear(); this.state.tasks.clear(); + this.agentDomainMap.clear(); + this.taskAssignments.clear(); + for (const queue of this.domainTaskQueues.values()) { + queue.length = 0; + } this.state.status = 'stopped';