codex-plugin-cc/plugins/codex/scripts
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
..
lib fix: add shell: true on Windows so spawnSync can resolve .cmd shims (#13) 2026-03-30 18:54:31 -07:00
app-server-broker.mjs Initial commit 2026-03-30 09:42:33 -07:00
codex-companion.mjs Initial commit 2026-03-30 09:42:33 -07:00
session-lifecycle-hook.mjs Initial commit 2026-03-30 09:42:33 -07:00
stop-review-gate-hook.mjs Initial commit 2026-03-30 09:42:33 -07:00