What version of Codex CLI is running?
codex-cli 0.133.0
Platform
Windows
Install method
npm global install:
npm install -g @openai/codex
Node / npm
Node: v24.12.0
npm: 11.6.2
What happened?
After updating Codex CLI to 0.133.0, shell commands started failing before execution with:
windows sandbox: spawn setup refresh
Even a simple pwd command failed before the shell started. This also reproduced outside the project directory in C:\tmp\codex-test, so it did not appear to be project-specific.
Repro steps
- Install/update Codex CLI to 0.133.0 on Windows.
- Start Codex.
- Ask Codex to run a simple command like
pwd.
- Observe command execution fails before shell startup.
Expected behavior
Codex should execute simple shell commands normally.
Actual behavior
Tool execution fails before the shell starts:
execution error: Io(Custom { kind: Other, error: "windows sandbox: spawn setup refresh" })
What did not fix it
- Closing and reopening the terminal
- Restarting the computer
- Uninstalling and reinstalling Codex CLI 0.133.0
- Testing in a clean directory outside the repo
Workaround that fixed it
Downgrading to Codex CLI 0.132.0 fixed command execution:
npm install -g @openai/codex@0.132.0
Related issue
This looks related to prior Windows sandbox setup-refresh failures, for example:
#21208
What version of Codex CLI is running?
codex-cli 0.133.0
Platform
Windows
Install method
npm global install:
Node / npm
Node: v24.12.0
npm: 11.6.2
What happened?
After updating Codex CLI to 0.133.0, shell commands started failing before execution with:
Even a simple
pwdcommand failed before the shell started. This also reproduced outside the project directory inC:\tmp\codex-test, so it did not appear to be project-specific.Repro steps
pwd.Expected behavior
Codex should execute simple shell commands normally.
Actual behavior
Tool execution fails before the shell starts:
What did not fix it
Workaround that fixed it
Downgrading to Codex CLI 0.132.0 fixed command execution:
Related issue
This looks related to prior Windows sandbox setup-refresh failures, for example:
#21208