Skip to content

fix: preserve spaced Windows shim command lines - #385

Open
Fermionic-Lyu wants to merge 1 commit into
mainfrom
codex/sup2-634-windows-spaced-shims
Open

Fermionic-Lyu wants to merge 1 commit into
mainfrom
codex/sup2-634-windows-spaced-shims

Conversation

@Fermionic-Lyu

@Fermionic-Lyu Fermionic-Lyu commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Windows agent setup fails when the resolved npx.cmd path contains spaces: cmd.exe /s /c strips the executable quotes and tries to run the first path component. Preserve a fully quoted command line through the shared resolver and its setup, skill-install, and upgrade callers.

The wrapper disables delayed expansion, preserves trailing backslashes and empty arguments, and retains the shell-metacharacter rejection with CR/LF also rejected. No command or flag changes.

Validation: typecheck, build, and all 107 local test files pass (2259 tests; one Windows-only test skipped on macOS). The new Windows regression executes a real .cmd shim under a spaced path and checks literal argv, including empty arguments, trailing backslashes, parentheses, and exclamation marks. Windows CI passed all 11 tests in this regression file; its full suite passed 2213 tests with 47 platform-specific skips. Linux CI also passed.

Independent self-review and mutation checks completed before push. Cubic reported no issues across all 8 files. No release is included.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 8 files

View guided diff | Turn on auto-fix | Re-trigger cubic

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant