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
[Windows][WSL2] Temporary workaround for unified exec ENOENT #50146
appIssues related to the Codex desktop appbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
When using Codex Desktop on Windows with the agent running in WSL2, the WSL terminal and project can work normally, but Codex command execution fails before even simple commands such as pwd or ls start:
Failed to create unified exec process: No such file or directory (os error 2)
Temporary workaround
In my environment, the issue is temporarily resolved by bind-mounting Codex's Linux-side arg0 directory to the Windows-mounted Codex arg0 path.
Example:
sudo mount --bind \
/home/<linux-user>/.codex/tmp/arg0 \
/mnt/c/Users/<windows-user>/.codex/tmp/arg0
After that, Codex command execution works again in WSL.
Then remove or comment out the corresponding line in:
/etc/fstab
Notes
This is only a temporary workaround that fixes the issue in my environment. I am not claiming this is the root cause for every unified-exec ENOENT failure.
changed the title [-][Windows][WSL2] Workaround for unified exec ENOENT: bind Codex tmp/arg0 to Windows-side path[/-][+][Windows][WSL2] Temporary workaround for unified exec ENOENT[/+]on Oct 2, 2026
appIssues related to the Codex desktop appbugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
[-][Windows][WSL2] Workaround for unified exec ENOENT: bind Codex tmp/arg0 to Windows-side path[/-][+][Windows][WSL2] Temporary workaround for unified exec ENOENT[/+]github-actions commentedon Oct 2, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action