From 838d43dd848d4a7dadf782cd73c7b0dc01952cdc Mon Sep 17 00:00:00 2001 From: rUv Date: Sun, 8 Feb 2026 02:19:14 +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:14Z - 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v3/@claude-flow/memory/src/auto-memory-bridge.ts b/v3/@claude-flow/memory/src/auto-memory-bridge.ts index 9142cb1458..9eec1b63f3 100644 --- a/v3/@claude-flow/memory/src/auto-memory-bridge.ts +++ b/v3/@claude-flow/memory/src/auto-memory-bridge.ts @@ -200,8 +200,10 @@ export class AutoMemoryBridge extends EventEmitter { private lastSyncTime: number = 0; private syncTimer: ReturnType | null = null; private insights: MemoryInsight[] = []; - /** Track AgentDB IDs of insights already written to files during this session */ + /** Track AgentDB keys of insights already written to files during this session */ private syncedInsightKeys = new Set(); + /** Monotonic counter to prevent key collisions within the same ms */ + private insightCounter = 0; constructor(backend: IMemoryBackend, config: AutoMemoryBridgeConfig = {}) { super();