chore(telemetry): remove hardcoded legacy getacquired slug from universal path normalizer

This commit is contained in:
2026-06-09 16:21:12 -07:00
parent 137d5975e1
commit a2298be5ca

View File

@@ -4576,16 +4576,11 @@ function normalizeFsPath(
normalized = normalized.slice(2);
}
// 3. Strip project slug prefix if the model hallucinates it (e.g. getacquired-2-0/src...)
// 3. Strip project slug prefix if the model hallucinates it
if (projectSlug && normalized.startsWith(`${projectSlug}/`)) {
normalized = normalized.slice(projectSlug.length + 1);
}
// Handle any other legacy hardcoded occurrences
if (normalized.startsWith("getacquired-2-0/")) {
normalized = normalized.substring("getacquired-2-0/".length);
}
const projectRoot = FS_ROOT;
const abs = `${projectRoot}/${normalized}`.replace(/\/+/g, "/");
const norm = abs.replace(/\/[^/]+\/\.\.(?=\/|$)/g, "").replace(/\/+/g, "/");