External Publication
Visit Post

Codex Desktop on Windows with WSL agent breaks local image preview due to Windows/WSL path mismatch

OpenAI Developer Community April 25, 2026
Source

I am using Codex Desktop on Windows with the agent configured to run through WSL.

When the agent generates or returns a local image path, the chat frontend tries to render the image using a path format that does not match the active agent/runtime environment. Because Windows paths and WSL paths differ, the image preview fails and only the broken image alt text is shown.

Example path mismatch:

Windows-style path: C:/Users//Documents/…/image.png

WSL-style path: /mnt/c/Users//Documents/…/image.png

Observed behavior:

  • Codex Desktop shows a broken image preview.
  • The generated image exists locally, but the frontend cannot resolve the path.
  • This happens when the agent path is configured to WSL, while the renderer appears to expect or emit Windows-style local paths.

Expected behavior:

  • Codex Desktop should normalize local image paths between WSL and Windows.
  • If the agent runs in WSL and returns /mnt/c/..., the frontend should convert it to C:/... or a valid file:///C:/... URI before rendering.
  • Alternatively, the app should document which local image path format is required when using a WSL agent.

Environment:

  • Windows + WSL
  • Codex Desktop
  • Agent configured to run from WSL
  • Local image preview in chat fails

Attached screenshot shows the broken generated image preview.

Discussion in the ATmosphere

Loading comments...