Skip to content

Windows Codex App cannot locate CLI when installed on non-standard drive #22672

@Y1-Bit

Description

@Y1-Bit

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

26.506.31421

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Environment:

  • Windows 11
  • WSL2 Ubuntu
  • Codex Windows Desktop App
  • Codex CLI installed both on Windows and WSL

Problem:
After enabling WSL integration, the Codex desktop app started showing:

"Unable to locate the Codex CLI binary. Set CODEX_CLI_PATH or ensure the Electron resources include bin/codex."

Image

Initially this looked like a WSL integration issue, but the actual root cause appears related to installing Codex on a non-standard drive (E: instead of C:).

What fixed it:
Moving/reinstalling Codex to the default C: drive immediately resolved the problem.

This suggests the Electron desktop app may have issues with:

  • non-standard installation drives
  • PATH propagation
  • Windows environment resolution
  • or WSL integration combined with custom install paths

What steps can reproduce the bug?

  1. Set a custom installation drive in Windows Settings for Microsoft Store apps: System -> Storage -> Advanced storage settings -> Where new content is saved (for example E: instead of C:) .
  2. Install the Codex Windows app from the Microsoft Store.
  3. Open Codex and go to: Settings -> Agent Environment
  4. Set the environment to: Windows Subsystem for Linux
  5. (Optional) Set the integrated terminal shell to WSL as well.
  6. Fully terminate all Codex processes via Task Manager.
  7. Relaunch the 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 workingwindows-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