Skip to content

Windows app: shell and Node REPL tools fail with a WSL workspace path #49897

Open

Description

@jackson-miller-maptek

What version of the Codex App are you using (From “About Codex” dialog)?

26.905.11957

What subscription do you have?

Business

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex cannot perform a simple document edit in a workspace configured with a Linux/WSL path.

The exec_command tool fails before executing commands, including a simple pwd, with:

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

Explicitly selecting /bin/bash with login disabled also fails.

The Node REPL tool fails before reading a file with:

Mcp error: -32602: js: codex/sandbox-state-meta: sandboxCwd is not a local file URI: file:///path/to/file

Retrying in the same or other chats produces the same errors. No document edits occurred.

What steps can reproduce the bug?

  1. Open the Windows Codex desktop app.
  2. Use a workspace at /home//code/.
  3. Ask: “Can you make and revert a change in a document?”
  4. Codex attempts to run shell commands and read repository files.
  5. Both exec_command and Node REPL fail with the errors above.
  6. Ask “Try now”; the failures repeat.

What is the expected behavior?

Codex should execute commands and read/write files in the configured workspace, make the temporary document edit, then restore and verify the original contents.

Additional information

The workspace uses a Linux/WSL path while the desktop app runs on Windows. A Windows/WSL path-handling mismatch may be involved, but the cause is unconfirmed.

Separately, an attached screenshot could not be opened using its C:/Users/... path. It was successfully opened using the equivalent /mnt/c/Users/... path.

Activity

  1. added
    app
    on Oct 1, 2026
  2. added
    bug
    windows-os
    tool-calls
    sandbox
    on Oct 1, 2026
  3. Artisean commented on Oct 7, 2026

    @Artisean

    I am reproducing this on a newer Codex Desktop build.

    Environment:

    • Windows 11 build 26200
    • ChatGPT Desktop: 1.2026.190.0
    • OpenAI.Codex: 26.1002.7124.0
    • Agent environment: WSL
    • Ubuntu / WSL2
    • Project storage is on a local NTFS Windows drive mounted into WSL

    Desktop execution consistently fails before commands start:

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

    The Node/file route also fails before reading files:

    Mcp error: -32602: js: codex/sandbox-state-meta:
    sandboxCwd is not a local file URI:
    file:///mnt/c/Users//Documents/Codex/

    I have reproduced this in:

    • Project Work
    • standalone Work
    • fresh Work conversations
    • existing Work conversations

    Direct WSL itself works normally. For example, launching /bin/sh through
    wsl.exe succeeds, and ordinary WSL can read the real repository files.

    The affected Codex/Work sessions read 0 repository bytes before failing.

    I have NOT:

    • enabled Full Access
    • disabled the sandbox
    • modified hidden .codex state
    • applied the arg0/bind-mount workaround
    • changed WSL mount configuration

    The same symptom class appears in #49777 and #50078.

    Since 26.1002.7124.0 is newer than several earlier reports, I wanted to add a current reproduction showing the issue is still present on my system.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions