diff --git a/packages/tools/src/claude-memory.ts b/packages/tools/src/claude-memory.ts index a419fee9..1e2fb995 100644 --- a/packages/tools/src/claude-memory.ts +++ b/packages/tools/src/claude-memory.ts @@ -694,8 +694,12 @@ export class ClaudeMemoryTool { hasUnverifiedCandidate = true continue } + const isMatchingCustomId = + document.customId === normalizedId || + document.customId === this.legacyNormalizePathToCustomId(filePath) + if ( - document.customId !== normalizedId || + !isMatchingCustomId || this.getDocumentFilePath(document) !== filePath || !this.hasExactContainerTags(document.containerTags) ) {