Codex App should switch which .codex directory it points to (and the integrated terminal shell) automatically based on the agent environment selected (native vs wsl)

Open 💬 1 comment Opened Jun 12, 2026 by mtsitzer

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

26.609.30741

What subscription do you have?

Pro Lite

What platform is your computer?

Windows + WSL2

What issue are you seeing?

Codex App uses C:\Users\<USERNAME>\.codex for its source of truth even when the agent environment is set to WSL. This is particularly unfortunate when the user has Codex CLI installed on WSL2 and has a ~/.codex directory in that environment that they are actively managing (and would like Codex App to respect / benefit from).

Additionally, Codex app sessions are stored on the native windows side, even if executing on WSL.

What steps can reproduce the bug?

Have Codex App installed, set agent environment to WSL, set terminal to WSL
Open a project in a WSL location.
Send a message / use Codex.

What is the expected behavior?

Auto swap which .codex directory and terminal shell Codex App is using as source of truth based on which agent environment option is selected (i.e., app should relaunch within WSL if agent environment is set to WSL and vice versa).

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗