@file path references are not being detected in Codex CLI on Ubuntu WSL

Open 💬 2 comments Opened Apr 24, 2026 by mauricio2093

What version of Codex CLI is running?

codex-cli 0.124.0

What subscription do you have?

ChatGPT Plus

Which model were you using?

gpt-5.3-codex high, gpt-5.4-mini high

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64 in Microsoft Windows NT 10.0.26200.0 x64

What terminal emulator and version are you using (if applicable)?

Windows Terminal with Ubuntu WSL

What issue are you seeing?

When I reference a file or path using @ in Codex CLI, the path is not detected or passed correctly to the model.

For example, I type something like:

@/mnt/d/programacion/PHP/web/path/to/file

or I reference an image/file with @, but Codex does not seem to receive the file/path context. Instead, it starts searching or assuming unrelated things, as if the @ reference was not attached or resolved.

The model behaves as if no file was provided, even though I explicitly typed the @ path.

What steps can reproduce the bug?

  1. Open Codex CLI on Ubuntu WSL.
  2. Navigate to a project located under /mnt/d/, for example:

/mnt/d/programacion/PHP/churrasqueria/web1.0

  1. Run Codex CLI.
  2. Send a prompt referencing a file or path using @, for example:

Convert these images to webp: @/mnt/d/programacion/PHP/churrasqueria/web1.0/assets/image1.png

or:

Review this file: @/mnt/d/programacion/PHP/churrasqueria/web1.0/path/to/file.php

  1. Codex does not detect the referenced file/path.
  2. Instead of using the file context, it starts guessing, searching, or treating the prompt as if no @ reference was provided.

Uploaded thread: 019dbd37-83c9-7672-a9a8-bd060eebaebd

What is the expected behavior?

Codex CLI should detect and resolve @ file/path references correctly in Ubuntu WSL.

When I provide a valid @ path, the referenced file should be attached or passed to the model as context, so the model can operate on that exact file instead of guessing or searching unrelated files.

Additional information

The project is located inside the Windows-mounted drive under /mnt/d/.

This happens when using Ubuntu WSL. The issue appears to be that @ path references are not being forwarded/resolved correctly by Codex CLI, even when the path exists and is valid from the WSL terminal.

The CLI shows that the model changed to gpt-5.3-codex high, but the @ file reference itself does not seem to reach the model.

<img width="1129" height="449" alt="Image" src="https://github.com/user-attachments/assets/58e3d0e1-48a7-4060-b3fc-e446a6fe8c27" />
<img width="1204" height="212" alt="Image" src="https://github.com/user-attachments/assets/e9e17133-4abc-442a-8ae5-56b3080df863" />
<img width="1107" height="204" alt="Image" src="https://github.com/user-attachments/assets/d17ee355-8b5a-4bb4-a9c9-5de59bf97567" />

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗