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 edits

rUv437e040b52c8
diff --git a/v3/@claude-flow/memory/src/auto-memory-bridge.ts b/v3/@claude-flow/memory/src/auto-memory-bridge.ts
index 7fad993773..e2611fe96a 100644
--- a/v3/@claude-flow/memory/src/auto-memory-bridge.ts
+++ b/v3/@claude-flow/memory/src/auto-memory-bridge.ts
@@ -310,6 +310,12 @@ export class AutoMemoryBridge extends EventEmitter {
const synced = buffered.length + entries.length;
this.lastSyncTime = Date.now();
+ // Prevent unbounded growth of syncedInsightKeys
+ if (this.syncedInsightKeys.size > 10_000) {
+ const keys = [...this.syncedInsightKeys];
+ this.syncedInsightKeys = new Set(keys.slice(keys.length - 5_000));
+ }
+
const result: SyncResult = {
synced,
categories: [...updatedCategories],