Skip to content

[Windows][WSL2] Temporary workaround for unified exec ENOENT #50146

Open

Description

@tranhuuhiep508

What issue are you seeing?

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.

You can verify the mount with:

findmnt /mnt/c/Users/<windows-user>/.codex/tmp/arg0

Make the workaround survive WSL shutdown

A normal bind mount disappears after:

wsl --shutdown

To recreate it automatically when WSL starts, add this to /etc/fstab:

/home/<linux-user>/.codex/tmp/arg0 /mnt/c/Users/<windows-user>/.codex/tmp/arg0 none bind,nofail 0 0

Then restart WSL.

Rollback

To remove the workaround:

sudo umount /mnt/c/Users/<windows-user>/.codex/tmp/arg0

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.

Related reports: #49731, #49904, #49969.

Activity

  1. added
    bug
    app
    windows-os
    tool-calls
    on Oct 2, 2026
  2. 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
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