diff --git a/.claude/helpers/statusline.cjs b/.claude/helpers/statusline.cjs index 85f64b6188..afcffb035e 100755 --- a/.claude/helpers/statusline.cjs +++ b/.claude/helpers/statusline.cjs @@ -597,7 +597,6 @@ function getCostFromStdin() { return null; } -// Read package version from the first package.json we find. // Compares dotted-numeric version strings (e.g. "3.27.1" vs "3.27.10"). // Returns >0 if a>b, <0 if a0 if a>b, <0 if a/ directory, which none of getPkgVersion()'s + // candidate paths can find) shows the real version instead of the + // previous hardcoded "3.6" placeholder. getPkgVersion()'s own runtime + // candidate scan still wins over this baked-in value when it finds + // something newer (e.g. a later `npm update` in the same project). + const bakedVersion = getInstalledCliVersion(); return `#!/usr/bin/env node /** @@ -624,7 +637,6 @@ function getCostFromStdin() { return null; } -// Read package version from the first package.json we find. // Compares dotted-numeric version strings (e.g. "3.27.1" vs "3.27.10"). // Returns >0 if a>b, <0 if a