Skip to content

Codex App on Windows doesn't respect WSL distro selection from VS Code #13966

@ronenabra

Description

@ronenabra

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

26.306.996.0

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64 + WSL Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What issue are you seeing?

I have several WSL distros on my machine, one of them (not default) used for codex.
I've configured VS Code to open projects from the codex distro.
However, when setting agent environment to WSL and opening a project via \wsl$\DistroName... Codex app always uses default distro, so it can't see the project (it says "Project folder was deleted or moved" in tooltip).
If I change default distro to the one I use for Codex, the app works properly, except for the open in VS Code button, which opens the folder via local path and not in WSL.

What steps can reproduce the bug?

  1. Create two WSL distros on the machine: A and B
  2. Set distro A to be the default
  3. Create a codex project in distro B from inside WSL via cli
  4. Open project in VS Code from WSL (i.e. - "code .") and make sure it's opened in correct WSL distro (B)
  5. Try to open this codex project in Codex Windows app via \wsl$\B... - project opens, but is not accessible.
  6. Close Codex app and set distro B to be the default
  7. Open Codex app again - the project should open now and be accessible
  8. Try to open VS Code from Codex app - it opens using local path and not via WSL

What is the expected behavior?

  • Codex Windows app should pick the distro to use if configured in VS Code. Or at least allow to pick distro to use form the settings/config.
  • Codex Windows app should open WSL projects in VS Code via WSL (i.e. - in the same way "code ."
    works from WSL)

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