From 437e040b52c8bfa336f3ee2cdf1c7afaa6fd166a Mon Sep 17 00:00:00 2001 From: rUv Date: Sun, 8 Feb 2026 02:19:26 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: rebrand/ruvflow-umbrella - Timestamp: 2026-02-08T02:19:26Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/memory/src/auto-memory-bridge.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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],