fix(coding-agent): normalize @ path prefixes closes #1206

This commit is contained in:
Mario Zechner 2026-02-02 23:56:20 +01:00
parent 1fbafd6cc7
commit c9a20a3aa4
2 changed files with 7 additions and 1 deletions

View file

@ -32,8 +32,12 @@ function fileExists(filePath: string): boolean {
}
}
function normalizeAtPrefix(filePath: string): string {
return filePath.startsWith("@") ? filePath.slice(1) : filePath;
}
export function expandPath(filePath: string): string {
const normalized = normalizeUnicodeSpaces(filePath);
const normalized = normalizeUnicodeSpaces(normalizeAtPrefix(filePath));
if (normalized === "~") {
return os.homedir();
}