Repository navigation
Description
Summary
In a Windows Codex desktop chat configured for WSL, every exec_command attempt fails before process creation. Fully quitting and restarting the app did not resolve it. A settings screenshot confirms Agent environment = Windows Subsystem for Linux and Integrated terminal shell = WSL.
The same chat's Node REPL separately rejects its WSL workspace URI before executing JavaScript. These are observed together; a shared root cause has not been established.
Environment
- Windows desktop app; project stored on the Windows C: drive and accessed through
/mnt/c/Users/<user>/code/<project>. - Settings confirmed from a screenshot after the user reported fully quitting and restarting.
- Exact app version and WSL distribution/version could not be collected because shell execution is unavailable.
load_workspace_dependenciesreports bundle version 26.921.10847 and Windows executable paths for Node, Python, and Git. This is the dependency bundle version, not a verified app version.- Reproduced September 29, 2026.
Reproduction in the affected chat
- Set the agent environment to Windows Subsystem for Linux and the integrated terminal to WSL.
- Fully quit and restart the desktop app.
- Resume the existing project chat with a WSL-form working directory on
/mnt/c. - Invoke:
{"cmd":"pwd","workdir":"/mnt/c/Users/<user>/code/<project>","shell":"/bin/bash","login":false}- The call fails before the command executes:
exec_command failed: CreateProcess { message: "Rejected(\"Failed to create unified exec process: No such file or directory (os error 2)\")" }
- A minimal Node REPL call,
nodeRepl.write({cwd:nodeRepl.cwd,home:nodeRepl.homeDir});, also fails before JavaScript executes:
Mcp error: -32602: js: codex/sandbox-state-meta:
sandboxCwd is not a local file URI:
file:///mnt/c/users/<user>/code/<project>
Paths above are anonymized. The chat's environment metadata supplied a lowercase /mnt/c/users/... cwd, whereas the saved project path and filesystem roots also include /mnt/c/Users/.... Both spellings were tried for shell execution; neither succeeded.
Other attempts and evidence
/bin/shwith cwd/tmpalso fails with the same process-creation error. This suggests the shell failure is not limited to the repository cwd.- Explicit Windows PowerShell and Windows cwd were tried as diagnostics and also failed before process creation.
- An escalated shell attempt failed with the same process-creation error; no automatic approval rejection was returned.
- App MCP tools and GitHub connector calls work.
view_imagesuccessfully read the settings screenshot using its/mnt/c/Users/...path. The attachment's original Windows path had failed to load. Therefore not all local file access is broken.- No application configuration or repository files were changed during this investigation.
Expected behavior
The WSL agent should start a Linux shell and execute pwd after selecting WSL and restarting. Native Windows auxiliary runtimes should accept appropriately translated workspace metadata or provide a clear supported limitation.
Impact
All implementation, profiling, and test execution in this development chat are blocked. Restarting and changing the explicit shell/cwd in tool calls do not recover execution.
Related reports
- Browser control rejects file:///mnt/c/... sandboxCwd in WSL agent mode for Windows-hosted folders #33560: same
/mnt/c/...Node REPL URI rejection; ordinary shell execution worked in that report. - Windows app: Computer Use initialization fails for a WSL workspace with “sandboxCwd is not a local file URI” #42924: Node REPL/Computer Use rejects a WSL workspace URI.
- Windows Desktop + WSL workspace: node_repl rejects /mnt/c sandboxCwd before Chrome/browser bootstrap #29413: Node REPL rejects WSL cwd before browser bootstrap.
This report includes the additional shell process-creation failure. Please consolidate with the owning issue if appropriate. No credentials, raw conversation logs, private repository contents, or unredacted screenshots are attached.
Activity
github-actions commentedon Sep 29, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
mrmt00 commentedon Sep 30, 2026
Same issue here with Desktop + WSL: shell commands fail with os error 2, and Node REPL rejects the WSL workspace URI. Restarting and reinstalling didn’t help.
youngcs1024 commentedon Sep 30, 2026
I’m seeing a very similar issue after a recent desktop update.
Environment:
Read-only diagnostics confirmed:
/mnt/c/Users//.codex/tmp/arg0/codex-arg0/codex-linux-sandbox
Separately, the Windows node_repl.exe rejects the WSL workspace URI:
sandboxCwd is not a local file URI: file:///home//
These observations support the shared Windows/WSL helper-cache hypothesis, but we have not identified the process that deleted the Linux helper directory or proven that the update caused it.
No configuration changes or workaround patches were applied. Is there an officially supported workaround or a confirmed fixed release?
ele-cren commentedon Sep 30, 2026
I’m seeing the same issue on two different Windows machines. On both, shell commands worked immediately before the latest Codex Desktop update and failed with this exact error immediately afterward.
This looks like a regression introduced by the latest update. Any updates from the team?
sveneh commentedon Sep 30, 2026
CAn confirm this after latest App Update
Still reproducible on Windows package 26.928.2636.0 with WSL2 and bundled CLI 0.159.2: sandboxed exec_command fails with os error 2 while approved unsandboxed execution works, and node_repl/js rejects the WSL workspace with sandboxCwd is not a local file URI: file:///home/...; restarting did not resolve it.
ventayol commentedon Sep 30, 2026
Same problem here, OpenAI needs to put more attention to Windows/WSL, they are constantly breaking things on this setup
RickyLoynd commentedon Sep 30, 2026
I can reproduce the same sandboxed-versus-escalated behavior covered by #49365 on September 30, 2026.
Environment:
/home/<user>/<repo>.Ordinary sandboxed
exec_commandcalls fail before execution:This occurred with
/bin/bashandlogin: falsein the repository, and with/bin/shrunning onlypwdin/tmp.Using per-call escalation restored repository access. For example, this invocation succeeded with exit code 0:
{ "cmd": "git status --short", "workdir": "/home/<user>/<repo>", "shell": "/bin/bash", "login": false, "sandbox_permissions": "require_escalated" }Subsequent file reads and Python commands also succeeded through that route.
Separately, the Node REPL fallback failed before executing JavaScript:
The escalation workaround restored shell access; Node REPL recovery was not verified. I have not inspected the sandbox-helper cache or established a common root cause for these two failures.
Is there a supported fix or a confirmed fixed desktop release for this issue? The repeated loss of ordinary repository access interrupts development, even though the same repository and Linux tools remain accessible through escalated execution.