Skip to content

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

Open

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

Activity

  1. added
    appIssues related to the Codex desktop app
    on Mar 5, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    on Mar 5, 2026
  3. github-actions commented on Mar 5, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. lenhoare commented on Mar 5, 2026

    @lenhoare
    Author
  5. lenhoare commented on Jul 1, 2026

    @lenhoare
    Author

    This is still not fixed. Its a glaring bug affecting many WSL2 users and should be easy to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions