codex icon indicating copy to clipboard operation
codex copied to clipboard

Open in Cursor/VSCode from a WSL folder should invoke cursor / code from wsl

Open kendonB opened this issue 8 months ago • 4 comments

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

26.304.1528.0

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Windows 11 x64

What issue are you seeing?

Clicking "open in" for VS Code (and descendants) from a WSL project should open the text editor from WSL, not from Windows. This will cause the text editor to use the WSL remote system.

What steps can reproduce the bug?

Click 'Open in' Cursor

What is the expected behavior?

No response

Additional information

No response

kendonB avatar Mar 06 '26 01:03 kendonB

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

  • #13656
  • #13213
  • #12984

Powered by Codex Action

github-actions[bot] avatar Mar 06 '26 01:03 github-actions[bot]

still not fixed

kendonB avatar May 18 '26 00:05 kendonB

I’m also hitting this in Codex Desktop on Windows with WSL2 Ubuntu enabled.

Codex is running against a WSL workspace on the Linux filesystem. The top-bar “Open in VS Code” action opens the project in Windows VS Code instead of opening it in the Remote-WSL context.

VS Code Remote-WSL itself is configured correctly. Opening the same kind of workspace with a Remote-WSL folder URI works:

Start-Process code -ArgumentList '--folder-uri','vscode-remote://wsl+Ubuntu/home/<user>/<project>'

So the issue seems to be specifically Codex Desktop’s open-target behavior. For WSL workspaces, the VS Code target should launch a vscode-remote://wsl+<distro>/... folder URI, or use an equivalent code --remote wsl+<distro> ... invocation, instead of opening the folder as a Windows/local path.

niftymonkey avatar May 29 '26 16:05 niftymonkey

still not fixed

kendonB avatar Jul 13 '26 04:07 kendonB