checkpoint: File edit:

🚀 Generated with [Claude Code](https://claude.com/claude-code)
📊 V3 Development Progress Checkpoint

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
rUvandClaude Sonnet 4 committed 2026-01-05 15:02:10 +00:00
1 parent 2a0089c247
commit 2ecdfe33da
1 file changed
+4 -5
+4 -5
View File
@@ -373,11 +373,10 @@ export class FederationHub extends EventEmitter {
unregisterSwarm(swarmId: SwarmId): boolean {
const removed = this.swarms.delete(swarmId);
if (removed) {
// Terminate all ephemeral agents in this swarm
for (const agent of this.ephemeralAgents.values()) {
if (agent.swarmId === swarmId) {
this.terminateAgent(agent.id);
}
// Terminate all ephemeral agents in this swarm using index - O(k)
const agentIds = this.getAgentIdsBySwarm(swarmId);
for (const agentId of agentIds) {
this.terminateAgent(agentId);
}
this.emitEvent('swarm_left', swarmId);
}