You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spawn codex ENOENT on Windows — app-server.mjs missing shell: true for .cmd wrapper resolution #32
On Windows, all review and task commands fail with spawn codex ENOENT because SpawnedCodexAppServerClient in scripts/lib/app-server.mjs uses child_process.spawn("codex", ...) without shell: true. Node.js spawn on Windows uses CreateProcessW, which only resolves .exe binaries — not the .cmd wrappers that npm install -g creates.
Environment
OS: Windows 11 Enterprise 10.0.26100
Node: v25.4.0
npm: 11.7.0
Codex CLI: @openai/codex 0.117.0 (installed globally via npm)
Plugin version: latest from marketplace
Steps to Reproduce
Install Codex globally on Windows: npm install -g @openai/codex
Run /codex:setup — reports ready: true, all checks pass
Run /codex:review --base <branch> — fails with:
spawn codex ENOENT
Root Cause
The codebase already handles this correctly in scripts/lib/process.mjs — both runCommand and binaryAvailable set shell: process.platform === "win32" (line 12), which is why /codex:setup succeeds.
However, scripts/lib/app-server.mjs line 188 spawns the app server without this flag:
Activity
fix: add shell: true on Windows for codex app-server spawn
Ranb972 commentedon Mar 31, 2026
Same issue here. Windows 11, PowerShell, Claude Code. /codex:review --background starts but shell commands fail with exit -1 in the Codex sandbox.
fix: resolve Windows ENOENT when spawning codex app-server (openai#55)