Agent environment and integrated terminal shell tied to the project rather than general setting for windows codex app
Open 💬 4 comments Opened Apr 9, 2026 by asmit203
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
App Windows
What feature would you like to see?
I would like to see that the agent environment and the integrated terminal shell they should not be linked to a general configuration but should be more project oriented because if we are using WSL environment in the codex app then it should be using the agent environment and the integrated terminal as the WSL and when it's using windows native stuff we should be working with windows native PowerShell or command prompt.
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
The issue with other issues is not matching but they are overlapping, so if the implementation is done per session wise i think that will solve the other issues discussed in #16285 #16579 #16717 but they are other issues with current implementation so I think my request is more broader in general, solving multiple issues with one solution.
I have the same need with a concrete mixed Windows + WSL workflow.
I use Codex Desktop on Windows with both WSL-native repositories and Windows-native projects.
Environment
C:\Users\<user>\Dev\Playground/home/<user>/Dev/<repo>Use case
Examples:
C:\Users\...\Dev\...Current problem
The current global setting makes this difficult and error-prone.
If I set Codex Desktop globally to WSL:
/mnt/c/...path semantics and a WSL terminal.If I set Codex Desktop globally to Windows native:
In practice, switching between projects requires manually changing global settings and checking carefully that commands are not being run in the wrong environment.
Why this matters
This is more than a shell preference. These project types differ in:
For WSL-native repositories, I expect Linux paths, Linux shell behavior, and Linux-side tools/configuration.
For Windows-native projects, I expect Windows paths, PowerShell behavior, and Windows-side tools/configuration.
Using one global setting for both makes mixed Windows + WSL development fragile.
Expected behavior
Codex Desktop should remember the Agent environment and Integrated terminal shell per project/workspace, while keeping the current global setting as the default fallback.
For example:
| Project type | Path type | Agent environment | Integrated terminal |
|---|---|---|---|
| WSL-native repository |
/home/<user>/Dev/...| WSL | WSL / bash || Windows-native project |
C:\Users\<user>\...| Windows native | PowerShell |Optional auto-detection would also help:
/home/...or\\wsl.localhost\...default to WSLC:\...default to Windows nativeRelated issues
This request is narrower than the broader WSL compatibility/worktree issues such as #14468 and #18506.
Those are related, but this issue is specifically about remembering the Agent environment and Integrated terminal shell per project/workspace.
Additional data point after further testing:
With my current global Agent environment set to WSL, I opened the local Playground folder through the Windows GUI flow:
I expected this Windows-side folder to either open with a Windows-native runtime or provide an obvious per-project way to choose the runtime. However, the resulting Codex chat still ran under WSL.
Observed from that Playground chat:
So even when the folder is selected through the Windows GUI, the project can still end up running with WSL runtime assumptions when the global Agent environment is set to WSL.
This is the concrete failure mode behind my earlier comment: for mixed Windows + WSL workflows, Codex Desktop needs to remember or allow overriding the Agent environment and integrated terminal shell per project/workspace, instead of only globally.