Skip to content

WSL startup failure when /mnt/c automount disabled #13588

@lenhoare

Description

@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//.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingterminalIssues related to the in-app terminalwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions