Skip to content

Windows sandbox: spawn setup refresh fails on Codex CLI 0.133.0 #24391

@Lyellr88

Description

@Lyellr88

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

  1. Install/update Codex CLI to 0.133.0 on Windows.
  2. Start Codex.
  3. Ask Codex to run a simple command like pwd.
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions