Codex Desktop WSL-native mode hides Chrome bridge tool and passes Windows attachment paths to Linux agent

Open 💬 2 comments Opened Jul 3, 2026 by SYU8384
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What issue are you seeing?

After enabling WSL-native Codex execution with:

[desktop]
runCodexInWindowsSubsystemForLinux = true

Codex correctly runs shell commands inside WSL and avoids repeated Windows wsl.exe launches. However, two Windows-side integrations regress:

  1. The normal Chrome bridge becomes unavailable in WSL-native sessions.
  2. Local image attachments are passed to the Linux agent as raw Windows paths like C:\Users\...\AppData\Local\Temp\...png, causing No such file or directory.

Environment

  • Codex Desktop version: 26.623.13972.0 / plugin runtime observed as 26.623.101652
  • Platform: Windows 11 + WSL2 Ubuntu
  • Shell after switch: /bin/bash
  • Codex app server after switch:

``text
/mnt/c/Users/zhuqi/.codex/bin/wsl/.../codex app-server --analytics-default-enabled
``

Reproduction steps

  1. On Windows with WSL2 Ubuntu, configure:

``toml
[desktop]
runCodexInWindowsSubsystemForLinux = true
``

  1. Restart Codex Desktop.
  1. Open a WSL-backed Codex session.
  1. Ask Codex to use the normal Chrome bridge against an existing signed-in Chrome tab.
  1. Observe that the Chrome plugin instructions require mcp__node_repl__js, but tool discovery does not expose that tool.
  1. Attach or paste an image from Windows clipboard.
  1. Observe Codex receives a path like:

``text
C:\Users\zhuqi\AppData\Local\Temp\codex-clipboard-....png
``
and fails to read it inside WSL.

Expected behavior

  • In WSL-native Codex mode, WSL repo commands should run inside Linux.
  • The trusted Chrome bridge should still be available, or Codex should provide a supported Windows-side bridge path.
  • Windows local attachment paths should be translated before being handed to a Linux agent, e.g.:

``text
C:\Users\zhuqi\AppData\Local\Temp\file.png
`
to:
`text
/mnt/c/Users/zhuqi/AppData/Local/Temp/file.png
``

Actual behavior

  • mcp__node_repl__js is not exposed in the WSL-native session, so Chrome bridge setup cannot proceed.
  • The Chrome plugin files exist and node_repl.exe is running, but the required tool is unavailable to the agent.
  • Windows attachment paths fail inside Linux until manually translated to /mnt/c/....

Evidence collected

  • Chrome plugin enabled in Windows config:

``toml
[plugins."chrome@openai-bundled"]
enabled = true
``

  • WSL-native mode enabled:

``toml
runCodexInWindowsSubsystemForLinux = true
``

  • node_repl.exe observed running under the WSL-backed Codex app server.
  • Chrome plugin files present:

``text
/mnt/c/Users/zhuqi/.codex/plugins/cache/openai-bundled/chrome/26.623.101652/scripts/browser-client.mjs
``

  • Tool discovery did not expose mcp__node_repl__js; it returned unrelated tools.
  • Image attachments exist at translated paths and are valid PNGs, but raw C:\... paths fail inside WSL:

``text
/mnt/c/Users/zhuqi/AppData/Local/Temp/codex-clipboard-ccc83cfc-7979-44f7-a959-6f6407fb09c2.png
/mnt/c/Users/zhuqi/AppData/Local/Temp/codex-clipboard-389777c7-8916-4676-ae60-b769833139dd.png
``

  • Screenshots from the affected session show:
  • Chrome bridge unavailable after WSL-native/interruption state.
  • Local image path read failure from raw C:\... path.

Why this matters

Users on Windows + WSL need WSL-native mode to avoid WSL instability from many repeated Windows-side wsl.exe launches. But switching to WSL-native mode currently breaks workflows that depend on signed-in Chrome state, browser verification, clipboard images, and Windows attachment paths.

The current workaround is painful: switch between WSL-native mode for repo work and Windows-hosted mode for Chrome/attachment-heavy work, restarting Codex each time.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 1 month ago

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

  • #30435
  • #30529
  • #30265
  • #29639

Powered by Codex Action

StreamVi · 3 days ago

Reproduced this in Codex Desktop on Windows with a WSL-backed workspace (August 25, 2026), multiple times in the same task.

Observed behavior:

  1. A PNG pasted from the Windows clipboard was passed to the agent only as a raw Windows path:

C:\Users\<redacted>\AppData\Local\Temp\codex-clipboard-<uuid>.png

  1. The attachment reader immediately reported:

No such file or directory (os error 2)

  1. The same file was then checked manually at the translated WSL path:

/mnt/c/Users/<redacted>/AppData/Local/Temp/codex-clipboard-<uuid>.png

  1. The file existed there, and the image could be opened successfully when the translated /mnt/c/... path was supplied explicitly.

This confirms that, at least in this reproduction, the screenshot was not missing or already deleted. The failure was specifically caused by passing the unconverted Windows path to the WSL/Linux-side image reader.

Expected behavior: Codex Desktop should either attach the image bytes directly or translate Windows attachment paths to their WSL mount paths before invoking image/file tools.