Skip to content

Commit 3409576

Browse files
Paveltarnoclaude
andcommitted
fix: restore process.env spread in skill check execa call
Without spreading process.env, execa replaces the entire environment when env is passed, so npx has no PATH and fails silently. Also reports skill check errors to PostHog via errorReporter. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 491043d commit 3409576

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/cli/utils/skill-version-check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function listInstalledSkills(
3737
const { stdout } = await execa("npx", ["-y", "skills", "list", "--json"], {
3838
cwd,
3939
timeout: 3000,
40-
env: { CI: "1" },
40+
env: { ...process.env, CI: "1" },
4141
});
4242

4343
// npx may emit non-JSON preamble (download progress, warnings) before the array

0 commit comments

Comments
 (0)