Skip to content

tracking: DEP0190 (shell:true + args) and bash PATH probe regressions in npx-cli bundle and hook scripts #2962

Description

@thedotmack

Root Cause

Multiple spawn sites pass an args array alongside shell: true, triggering Node.js DEP0190 security deprecation on Node >=22. PR #1677 fixed this in scripts/bun-runner.js but the same pattern exists in the dist/npx-cli/index.js bundle (bun/uv/claude detection, npm install, codex spawn). Separately, hooks prepend $($SHELL -lc 'echo $PATH') which spawns a fresh login shell on every hook, failing on Windows Git Bash and causing PATH resolution errors. Both are spawn-contract failures in the distributed bundles.

Tracked Items

Issues

PRs

Resolution

This is the canonical tracking issue for this root cause. Individual issues and PRs listed above will be closed in favor of this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugtrackingCanonical issue consolidating duplicate bug reports by root cause

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions