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.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Experiencing the same issue!
Same here
Windows 10, running it in WSL
I was trying to migrate my vscode tasks after switching from vscode extension to the app
But the button to run something just does not appear
<img width="374" height="360" alt="Image" src="https://github.com/user-attachments/assets/1ec78cff-4718-4ba6-b481-a9c6228e6ae0" />
<img width="322" height="262" alt="Image" src="https://github.com/user-attachments/assets/2feb3e7f-6ce8-4c3a-bdb9-8e53f166ac9d" />
<img width="770" height="691" alt="Image" src="https://github.com/user-attachments/assets/6ed378d4-fc8e-4aa9-95a4-424a39b8ded0" />
Trying to get these buttons to appear (image from the internet)
<img width="561" height="308" alt="Image" src="https://github.com/user-attachments/assets/f0049d88-bcaf-4259-b5a1-95a742de1c93" />
While I see environments in the codex settings
<img width="840" height="634" alt="Image" src="https://github.com/user-attachments/assets/87b076a0-bd3e-4150-90e4-1cc0571db84f" />
These things keep pushing me back to vscode extension, which works perfectly fine (and vscode has tasks)
I also wish that when I open vscode in codex, it would open it remote from WSL, it seems currently it just opens local one and opens through mnt/
(also have to install and update codex dependencies manually, because it says they are not supported in Windows 10 to be installed through the app...but they work just fine...so far vscode extension is so much less trouble in general, it just works)
<details>
<summary>codex response</summary>
I’m seeing what appears to be the same issue.
Environment:
.codex/environments/environment.tomlWhat happens:
No environmentNo environments foundWhat I verified:
.codex/environments/environment.tomlexists at the project root.Runaction plus additional actions.This looks like the app can read the environment file through settings, but the main composer/project environment selector is not registering WSL-backed repo-local environments.
</details>
Experiencing the same issue!