fix(tools): handle legacy customIds during document verification

This commit is contained in:
Aditya kumar singh 2026-09-17 16:29:40 +05:30 • committed by Mahesh Sanikommu
parent db64d1369c
commit d110df8ad2

View file

@ -696,8 +696,12 @@ export class ClaudeMemoryTool {
hasUnverifiedCandidate = true hasUnverifiedCandidate = true
continue continue
} }
const isMatchingCustomId =
document.customId === normalizedId ||
document.customId === this.legacyNormalizePathToCustomId(filePath)
if ( if (
document.customId !== normalizedId || !isMatchingCustomId ||
this.getDocumentFilePath(document) !== filePath || this.getDocumentFilePath(document) !== filePath ||
!this.hasExactContainerTags(document.containerTags) !this.hasExactContainerTags(document.containerTags)
) { ) {