WSL startup failure when /mnt/c automount disabled

Open 💬 3 comments Opened Mar 5, 2026 by lenhoare

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

26.304.1528.0_x64__2p2nqsd0c76g0\

What subscription do you have?

Plus

What platform is your computer?

Windows

What issue are you seeing?

Environment
-----------
Windows 11
WSL2 with Windows drive automount disabled

/etc/wsl.conf:

[automount]
enabled = false

Problem
-------
If Codex is configured to run the agent in WSL, the app crashes on startup.

Error:

Codex app-server exited unexpectedly (code=127).
/usr/bin/bash: line 1:
/mnt/c/Users/<user>/.codex/bin/wsl/codex: No such file or directory

Cause
-----
Codex assumes the Windows drive is mounted at /mnt/c inside WSL.
When automount is disabled this path does not exist.

Expected behaviour
------------------
Codex should either:

• copy the agent binary into the WSL filesystem
• detect missing /mnt/c and fallback
• allow configuring the path

What steps can reproduce the bug?

Make sure automount is disabled in WSL2.
Install the windows Codex app.
Create a new environment in settings.
Select WSL.
Restart Codex app.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗