Windows Codex app can open repo local environment file in WSL project, but composer dropdown shows "No environments found"
What version of the Codex App are you using (From “About Codex” dialog)?
26.417.5275.0
What subscription do you have?
Plus
What platform is your computer?
Windows 11, Microsoft Windows NT 10.0.26200.0, x64
What issue are you seeing?
I’m using the Codex Windows app with a project stored in WSL2. The app can open and edit the project local environment file, but the main composer environment selector still shows "No environments found".
Environment:
- Codex Windows app version: 26.417.5275.0
- Host OS: Windows 11
- Runtime: WSL2, Ubuntu
- Project repo contains:
- .codex/environments/environment.toml
- .codex/config.toml
What I expected:
The local environment should appear in the composer dropdown and be selectable.
What actually happens:
- In the main composer, the environment dropdown shows:
- No environment
- No environments found
- But if I click Create local environment and then open the project from the environments page, the app opens the existing file:
- /home/<user>/<repo>/.codex/environments/environment.toml
- The environment editor shows the environment name and scripts correctly.
So the app can read the environment file in the editor, but the main composer still does not list it.
Steps to reproduce:
- Open a WSL2-backed project in Codex Windows app.
- Ensure the repo contains .codex/environments/environment.toml at the project root.
- Open the project in the app.
- In the composer, open the local environment dropdown.
- Observe it says "No environments found".
- Click Create local environment.
- Open the same project from the environments page.
- Observe the app successfully opens and displays the existing environment.toml.
Additional context:
- WSL2 is confirmed with
wsl -l -v. - The project is definitely the correct repo.
- The repo-level .codex/environments/environment.toml exists and is readable by the app.
- The repo-level .codex/config.toml contains only:
sandbox_mode = "workspace-write"- I also aligned WSL and Windows Codex home by setting CODEX_HOME to the Windows Codex home directory.
- That fixed the split Windows vs WSL Codex home issue, but it did not fix the composer dropdown issue.
Current workaround:
No real workaround yet. I can open and edit the environment via the environment editor, but I still cannot select it from the main composer dropdown.
What steps can reproduce the bug?
- Use the Codex Windows app on Windows 11 with a repo stored in WSL2.
- Open a project whose repo contains:
.codex/environments/environment.toml.codex/config.toml
- Open the project in the Codex app.
- In the composer, open the local environment dropdown.
- Observe that it shows:
No environmentNo environments found
- Click
Create local environment. - Open the same project from the environments page.
- Observe that the app successfully opens the existing file:
/home/<user>/<repo>/.codex/environments/environment.toml
- The environment editor shows the environment name and scripts correctly, but the composer dropdown still does not list the environment.
What is the expected behavior?
The local environment defined in .codex/environments/environment.toml should appear in the composer dropdown and be selectable.
If the environment editor can open and read the existing environment file successfully, the composer should also list that environment instead of showing No environments found.
Additional information
Additional context:
- WSL2 is confirmed with
wsl -l -v. - The project is definitely the correct repo.
- The repo-level
.codex/environments/environment.tomlexists and is readable by the app. - The repo-level
.codex/config.tomlcontains only: sandbox_mode = "workspace-write"- I also aligned WSL and Windows Codex home by setting
CODEX_HOMEto the Windows Codex home directory. - That fixed the split Windows vs WSL Codex home issue, but it did not fix the composer dropdown issue.
Current workaround:
I can open and edit the environment via the environment editor, but I still cannot select it from the main composer dropdown.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗