Windows Codex App WSL mode requires danger-full-access because sandbox blocks WSL access
Open 💬 1 comment Opened May 28, 2026 by yfcube
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:
- Set [windows] sandbox = "elevated"
- Restart Codex App
- In Codex shell, whoami returns ...\codexsandboxoffline
- wsl -l shows no installed distributions
- Set [windows] sandbox = "unelevated"
- Restart Codex App
- In Codex shell, whoami returns real user ...\<user_name>
- HKCU\Software\Microsoft\Windows\CurrentVersion\Lxss contains distro entries
- But wsl -l fails with:
Wsl/EnumerateDistros/Service/E_ACCESSDENIED
- 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_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗