From d40ed851a2989d04f4f7b3f492aa014c785d2fb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Sat, 21 Mar 2026 21:08:58 -0600 Subject: [PATCH] fix(repo-identity): use native realpath on Windows to resolve 8.3 short paths (#1960) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use realpathSync.native() on Windows in canonicalizeExistingPath to resolve 8.3 short names (RUNNER~1 → runneradmin). Fixes isInheritedRepo path comparison failures on Windows CI. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/resources/extensions/gsd/repo-identity.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resources/extensions/gsd/repo-identity.ts b/src/resources/extensions/gsd/repo-identity.ts index e704c4f48..d3133c3d6 100644 --- a/src/resources/extensions/gsd/repo-identity.ts +++ b/src/resources/extensions/gsd/repo-identity.ts @@ -164,7 +164,8 @@ function getRemoteUrl(basePath: string): string { */ function canonicalizeExistingPath(path: string): string { try { - return realpathSync(path); + // Use native realpath on Windows to resolve 8.3 short paths (e.g. RUNNER~1) + return process.platform === "win32" ? realpathSync.native(path) : realpathSync(path); } catch { return resolve(path); }