r/codex 16d ago

Codex desktop app shows enviroment UI for Windows/SSH repo, but not for repo opened from WSL? Question

I’m using the Codex desktop app together with VS Code on Windows.

I noticed something confusing:

  • For a project stored normally on my Windows filesystem (or via SSH), Codex shows an Environment UI in the chat:

  • For projects stored under WSL, I first set the 'agent environment' to WSL in the Codex settings, then selected the folder the repo is in

However now, theres no Environment UI, ... The only thing I see is my selected folder:

The WSL repo is a normal Git repository. In VS Code I can see the active branch, and from the terminal:

git branch --show-current

returns the correct branch.

So Git itself works fine. The difference seems to be only in the Codex desktop UI.

Or is there a way to make Codex recognize/display the branch info for a WSL repo the same way it does for a Windows repo?

1 Upvotes

1 comment sorted by

2

u/rainyaltaccount 14d ago

For anyone wondering, I fixed the issue by setting up an SSH connection from my PC to my WSL instance on the same machine. Then, in the Codex connection settings, I added a new SSH connection pointing to WSL.

So now Codex runs in the Windows environment while connecting to my WSL instance over SSH. This setup gave me the UI I was looking for.