Codex may use shell-less V8 environment for explicit gh CLI requests
Open 💬 0 comments Opened Jul 27, 2026 by david-rzepa
Reproduction
- On Windows, install and authenticate GitHub CLI.
- Confirm
gh auth statussucceeds in the host terminal. - Ask Codex Desktop to use the
ghCLI. - Codex may attempt to execute it inside its fresh V8 orchestration sandbox.
- That sandbox reports:
process: undefined
require: undefined
Deno: undefined
node:child_process import: failed
gh execution: failed
- Tell Codex to use the host command-execution environment.
- The same
ghoperation succeeds using the existing host authentication.
The Node-backed MCP environment was also tested and successfully resolved gh. The reproduced failure is specifically in the shell-less V8 orchestration environment.
Expected behavior
An explicit request to use gh runs in the authenticated host command environment.
Actual behavior
Codex may select its shell-less V8 orchestration environment, where gh cannot execute, requiring the user to redirect it manually.
Environment
- Codex Desktop
- Windows
- GitHub CLI 2.89.0
- Failing environment: fresh V8 orchestration isolate
- Working environment: Windows host command execution