You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codex App on Windows ignores WSL agent environment and starts projectless threads in local PowerShell with invalid C:\mnt\c path #28302
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
However, new projectless Codex App threads are still launched as a local Windows/PowerShell environment instead of WSL. The thread receives an invalid Windows path derived from a WSL path: C:\mnt\c\Users\Administrator\Documents\Codex\2026-06-15\new-chat-3.
This path does not exist on Windows. The correct WSL path is: /mnt/c/Users/Administrator/Documents/Codex/2026-06-15/new-chat-3
Inside the running Codex session, shell commands execute in Windows PowerShell 5.1, and WSL_DISTRO_NAME is empty.
What steps can reproduce the bug?
On Windows, install/use Codex Desktop.
Enable WSL-related settings:
Agent environment: Windows Subsystem for Linux
Integrated terminal shell: WSL
Start a new projectless chat/thread.
Observe that the session runs under Windows PowerShell instead of WSL, and the cwd is C:\mnt\c....
I also verified WSL itself works:
wsl.exe -d Ubuntu --cd /mnt/c/Users/Administrator/Documents/Codex/2026-06-15/new-chat-3 --exec sh -lc 'pwd; uname -s; echo WSL_DISTRO_NAME=$WSL_DISTRO_NAME'
Output:
/mnt/c/Users/Administrator/Documents/Codex/2026-06-15/new-chat-3
Linux
WSL_DISTRO_NAME=Ubuntu
What is the expected behavior?
When Codex Desktop is configured to use WSL, new projectless threads should launch the agent in WSL, with cwd set to a valid Linux path such as: /mnt/c/Users/Administrator/Documents/Codex/2026-06-15/new-chat-3
The session should not launch as local Windows PowerShell, and should not receive the invalid path: C:\mnt\c\Users\Administrator\Documents...
Additional information
This looks like a Windows/WSL path conversion or environment selection bug in Codex Desktop.
Relevant local state observed:
C:\Users\Administrator.codex\config.toml contains the expected WSL desktop settings.
Codex state/logs record the thread cwd as C:\mnt\c\Users\Administrator\Documents\Codex\2026-06-15\new-chat-3.
The turn environment appears as environment_id: "local" rather than a WSL environment.
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Jun 15, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
aikannba commentedon Jun 15, 2026
The solution can be find in: #22423 (comment), this case will be closed.