codex - 💡(How to fix) Fix Codex Desktop Windows - WSL - crashes on non standard mount /c instead of /mnt/c/

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…

Error Message

Codex desktop was running fine in windows. I changed the agent environment from windows native to wsl. then tried to restart. it doesn't load and gives this error. In my wsl.. c is mounted directly in root as /c instead of /mnt/c/ An error has occurred Codex crashed with the following error: Most recent error: /usr/bin/bash: line 1: /mnt/c/Users/shara/.codex/bin/wsl/codex: No such file or directory

RAW_BUFFERClick to expand / collapse

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

26.506.11943

What subscription do you have?

5x

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex desktop was running fine in windows. I changed the agent environment from windows native to wsl. then tried to restart. it doesn't load and gives this error. In my wsl.. c is mounted directly in root as /c instead of /mnt/c/

-- An error has occurred Codex crashed with the following error:

(code=127, signal=null). Most recent error: /usr/bin/bash: line 1: /mnt/c/Users/shara/.codex/bin/wsl/codex: No such file or directory Some things to try:

Check your config.toml for invalid settings Check your settings to disable running in WSL if you are seeing compatibility issues Try downloading a different version of the extension Click reload to restart the Codex extension, or visit our documentation for additional help.

<img width="1024" height="680" alt="Image" src="https://github.com/user-attachments/assets/0ac057c9-2e78- 41b0-901c-54d7178add87" />

What steps can reproduce the bug?

Change agent envrionment frm native windows to wsl and in wsl have c drive mounted in root as /c/

What is the expected behavior?

Either codex-desktop should infer from wsl from c is mouted or specifically ask the user - so the issue doesn't happen.

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