Skip to content

Windows desktop with WSL selected: exec_command cannot create any process after restart; node_repl rejects WSL cwd #49400

Open

Description

@wmatson

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_dependencies reports 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

  1. Set the agent environment to Windows Subsystem for Linux and the integrated terminal to WSL.
  2. Fully quit and restart the desktop app.
  3. Resume the existing project chat with a WSL-form working directory on /mnt/c.
  4. Invoke:
{"cmd":"pwd","workdir":"/mnt/c/Users/<user>/code/<project>","shell":"/bin/bash","login":false}
  1. 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)\")" }
  1. 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/sh with cwd /tmp also 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_image successfully 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

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

  1. added
    bug
    app
    windows-os
    tool-calls
    on Sep 29, 2026
  2. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. mrmt00 commented on Sep 30, 2026

    @mrmt00

    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.

  4. youngcs1024 commented on Sep 30, 2026

    @youngcs1024

    I’m seeing a very similar issue after a recent desktop update.

    Environment:

    • Desktop version: 26.928.20755
    • Windows package: 26.928.1915.0
    • Bundled WSL CLI: 0.159.0
    • WSL2, Ubuntu 24.04

    Read-only diagnostics confirmed:

    • Ordinary sandboxed exec_command calls fail before Bash starts, even for pwd.
    • With tty enabled, the error identifies a missing helper:
      /mnt/c/Users//.codex/tmp/arg0/codex-arg0/codex-linux-sandbox
    • That entire helper directory is missing, but the running WSL app-server still holds a file descriptor and POSIX advisory lock referencing its .lock file.
    • The shared tmp/arg0 directory contains only another directory with .lock, apply_patch.bat, and applypatch.bat.
    • The identical pwd command succeeds with require_escalated. WSL, Bash, and the repository directory are accessible.
    • Logs show a native Windows Local Work executor starting shortly after the WSL app-server. The remaining arg0 directory’s timestamp coincides with that startup.

    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?

  5. ele-cren commented on Sep 30, 2026

    @ele-cren

    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?

  6. sveneh commented on Sep 30, 2026

    @sveneh

    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.

  7. ventayol commented on Sep 30, 2026

    @ventayol

    Same problem here, OpenAI needs to put more attention to Windows/WSL, they are constantly breaking things on this setup

  8. RickyLoynd commented on Sep 30, 2026

    @RickyLoynd

    I can reproduce the same sandboxed-versus-escalated behavior covered by #49365 on September 30, 2026.

    Environment:

    • Windows desktop app with Ubuntu WSL2.
    • Repository on the Linux filesystem: /home/<user>/<repo>.
    • ChatGPT (for Windows) version 26.928.21956
    • codex-cli 0.159.2

    Ordinary sandboxed exec_command calls fail before execution:

    exec_command failed: CreateProcess {
      message: "Rejected(\"Failed to create unified exec process: No such file or directory (os error 2)\")"
    }
    

    This occurred with /bin/bash and login: false in the repository, and with /bin/sh running only pwd in /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:

    Mcp error: -32602: js: codex/sandbox-state-meta:
    sandboxCwd is not a local file URI:
    file:///home/<user>/<repo>
    

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions