diff --git a/src/auto-reply/reply/post-compaction-audit.ts b/src/auto-reply/reply/post-compaction-audit.ts index aa347f6bced..12741fc2951 100644 --- a/src/auto-reply/reply/post-compaction-audit.ts +++ b/src/auto-reply/reply/post-compaction-audit.ts @@ -30,7 +30,9 @@ export function auditPostCompactionReads( // RegExp — match against relative paths from workspace const found = readFilePaths.some((p) => { const rel = path.relative(workspaceDir, path.resolve(workspaceDir, p)); - return required.test(rel); + // Normalize to forward slashes for cross-platform RegExp matching + const normalizedRel = rel.split(path.sep).join("/"); + return required.test(normalizedRel); }); if (!found) { missingPatterns.push(required.source);