codex - 💡(How to fix) Fix Codex CLI 0.133.0 fails to start with default permissions, but starts when explicitly passing `--sandbox workspace-write`.

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Codex CLI 0.133.0 fails to start with default permissions, but starts when explicitly passing --sandbox workspace-write.

Error Message

Running:

codex

fails with

Error: Failed to start a fresh session through the app server: thread/start failed during TUI bootstrap: thread/start failed: Invalid request: invalid type: string ":workspace", expected internally tagged enum PermissionProfileSelectionParams (code -32600)

Root Cause

Codex CLI 0.133.0 fails to start with default permissions, but starts when explicitly passing --sandbox workspace-write.

Fix Action

Workaround

This works

codex --sandbox workspace-write

Downgrade also works

npm install -g @openai/[email protected]

Code Example



---

codex

---

Error: Failed to start a fresh session through the app server: thread/start failed during TUI bootstrap: thread/start failed: Invalid request: invalid type: string ":workspace", expected internally tagged enum PermissionProfileSelectionParams (code -32600)

---

codex --sandbox workspace-write

---

npm install -g @openai/codex@0.132.0
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.133.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.5

What platform is your computer?

Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

Ghostty / tmux

Codex doctor report

What issue are you seeing?

Description

Codex CLI 0.133.0 fails to start with default permissions, but starts when explicitly passing --sandbox workspace-write.

Environment

  • OS: Linux
  • Install path: /home/yunqing/.nvm/versions/node/v22.17.0/bin/codex
  • Version: codex-cli 0.133.0
  • CWD: /home/yunqing/projects/trade

Error

Running:

codex

fails with

Error: Failed to start a fresh session through the app server: thread/start failed during TUI bootstrap: thread/start failed: Invalid request: invalid type: string ":workspace", expected internally tagged enum PermissionProfileSelectionParams (code -32600)

Workaround

This works

codex --sandbox workspace-write

Downgrade also works

npm install -g @openai/[email protected]

What steps can reproduce the bug?

Upgrade to codex 0.133.0 and run $ codex

What is the expected behavior?

Codex CLI should open without any error.

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING