#Codex Sanbox Issue

1 messages · Page 1 of 1 (latest)

orchid cedarBOT
#

Reported by @dusky sigil

Bug Report: Codex Sanbox Issue
`Steps to Reproduce`

Every terminal command now immediately fails with the Codex CLI error “unexpected argument '--sandbox-policy-cwd'.”

That means the CLI wrapper itself is broken—nothing gets executed (even ls)

`Expected Result`

Working CLI with shell commands and all tools enabled.

`Actual Result`

Every terminal command now immediately fails with the Codex CLI error “unexpected argument '--sandbox-policy-cwd'.”

That means the CLI wrapper itself is broken—nothing gets executed (even ls)

`Environment`

Windows 11 WSL Ubuntu

#
Additional Information

Please provide relevant details to help resolve the issue, such as:

  • ChatGPT Shared Link (if applicable).
  • Screenshots or videos demonstrating the problem.

-# ➜ Need to contact support? Visit the OpenAI Help Center.

dusky sigil
#

I can send my config.toml and wrapper

dusky sigil
#

@ebon dawn

ebon dawn
#

Also run:
which codex
file codex

And post all 3 results

dusky sigil
#

codex is /home/beni/.npm-global/bin/codex

/home/beni/.npm-global/bin/codex

beni@BeniPC:~$ file codex
codex: cannot open `codex' (No such file or directory)

dusky sigil
dusky sigil
#

@ebon dawn it cant run any shell commands right now

#

And I cant work on my project like this

#

Should I send my config.toml

#

or wrapper

ebon dawn
dusky sigil
ebon dawn
dusky sigil
#

Running just codex too

ebon dawn
dusky sigil
#

Everything was working but this sandbox flag keeps coming up and ruins my shell commands

#

Unified_exec experimental true rmcp_client experimental true apply_patch_freeform beta true view_image_tool stable true web_search_request stable true experimental_sandbox_command_assessment experimental false ghost_commit experimental false enable_experimental_windows_sandbox experimental false

#

Even though sandboxing is set to false

ebon dawn
#

That feature gives codex a reusable shell. When you turn it off it runs slower but it spawns a new shell every time codex runs a command on your computer so it’ll survive errors like that

dusky sigil
ebon dawn
#

Gotcha. “features.unified_exec = false”

dusky sigil
#

Fixed

dusky sigil
#

Why?

#

Its turned on in the config

#

But still says no network access

ebon dawn
#

Share config, but erase any JWT tokens from it first

dusky sigil
#

@ebon dawn