codex - 💡(How to fix) Fix Windows Codex App WSL mode requires danger-full-access because sandbox blocks WSL access

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…
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.519.81530

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Environment:

  • Windows 11
  • Codex App on Windows
  • WSL 2 installed with 3 distros:
    • Ubuntu-20.04 default
    • Ubuntu-22.04
    • Ubuntu-22.04-clone

Problem: Codex App cannot run in WSL mode unless sandbox_mode = "danger-full-access". The user must disable command sandbox entirely to use WSL mode.

What steps can reproduce the bug?

Reproduction:

  1. Set [windows] sandbox = "elevated"

  2. Restart Codex App

  3. In Codex shell, whoami returns ...\codexsandboxoffline

  4. wsl -l shows no installed distributions

  5. Set [windows] sandbox = "unelevated"

  6. Restart Codex App

  7. In Codex shell, whoami returns real user ...<user_name>

  8. HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss contains distro entries

  9. But wsl -l fails with: Wsl/EnumerateDistros/Service/E_ACCESSDENIED

  10. Only sandbox_mode = "danger-full-access" allows wsl -l and WSL agent to work.

What is the expected behavior?

Expected: WSL agent mode should be able to access the current user's WSL distros without requiring danger-full-access.

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