Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

checkpoint: File edit:

rUv3e2ff5097f95
diff --git a/v3/@claude-flow/swarm/src/message-bus.ts b/v3/@claude-flow/swarm/src/message-bus.ts
index 845d0ee9c3..e5b26e5c8b 100644
--- a/v3/@claude-flow/swarm/src/message-bus.ts
+++ b/v3/@claude-flow/swarm/src/message-bus.ts
@@ -80,8 +80,13 @@ export class MessageBus extends EventEmitter implements IMessageBus {
this.processingInterval = undefined;
}
+ if (this.statsInterval) {
+ clearInterval(this.statsInterval);
+ this.statsInterval = undefined;
+ }
+
// Clear all pending acks
- for (const [messageId, pending] of this.pendingAcks) {
+ for (const [, pending] of this.pendingAcks) {
clearTimeout(pending.timeout);
}
this.pendingAcks.clear();
@@ -89,6 +94,7 @@ export class MessageBus extends EventEmitter implements IMessageBus {
// Clear all queues
this.queues.clear();
this.subscriptions.clear();
+ this.messageHistory = [];
this.emit('shutdown');
}