codex-plugin-cc/plugins/codex
Omid Rajabi cf6f8515d8
fix: add shell: true on Windows so spawnSync can resolve .cmd shims (#13)
On Windows, Node.js `spawnSync` without `shell: true` uses
`CreateProcess`, which only resolves `.exe` files. npm installs global
tools (like `codex`) as `.cmd` shims, so `spawnSync("codex", ...)`
returns ENOENT even when codex is correctly installed and on PATH.

Adding `shell: process.platform === "win32"` routes through `cmd.exe`
on Windows, which properly resolves `.cmd`, `.bat`, and PATHEXT entries.
No behavior change on macOS/Linux since the condition evaluates to false.
2026-03-30 18:54:31 -07:00
..
.claude-plugin Initial commit 2026-03-30 09:42:33 -07:00
agents Initial commit 2026-03-30 09:42:33 -07:00
commands Initial commit 2026-03-30 09:42:33 -07:00
hooks Initial commit 2026-03-30 09:42:33 -07:00
prompts Initial commit 2026-03-30 09:42:33 -07:00
schemas Initial commit 2026-03-30 09:42:33 -07:00
scripts fix: add shell: true on Windows so spawnSync can resolve .cmd shims (#13) 2026-03-30 18:54:31 -07:00
skills Initial commit 2026-03-30 09:42:33 -07:00
CHANGELOG.md Initial commit 2026-03-30 09:42:33 -07:00
LICENSE Initial commit 2026-03-30 09:42:33 -07:00
NOTICE Initial commit 2026-03-30 09:42:33 -07:00