Codex CLI reference file completions remove @ sign and make completion more convenient

Resolved 💬 2 comments Opened Nov 19, 2025 by VArtzy Closed Nov 29, 2025
💡 Likely answer: A maintainer (Priya-753, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

codex-cli 0.58.0

What subscription do you have?

API

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 24.3.0 arm64 arm

What issue are you seeing?

Every time I use Codex CLI "@" after completion using Tab or Enter it going to removes the "@" annotation symbol and make the reference useless.

Also when start type "@" the search aren't showing up unless I typed something, is it more convenient to show up at first and ignore .git files? So we kinda sense get what we've looked for

<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/83f4bdf6-760b-4557-bb46-af29f95298a8" />

<img width="1920" height="1080" alt="Image" src="https://github.com/user-attachments/assets/02302551-96fd-49b9-8d67-e5966e1eb76c" />

What steps can reproduce the bug?

Get into Codex CLI then start type "@" says no matches then even after you find and complete completion it will remove your "@" sign and it not become reference anymore and then codex will start ls.

This is small but kinda annoying at long run prompt code

What is the expected behavior?

Should not remove "@" sign for focused, direct and annotation. Better to show up at first and remove .git files

Additional information

Let me know if im missing something. Thanks.

View original on GitHub ↗

2 Comments

Priya-753 contributor · 9 months ago

As per this comment it is intentional for files to appear only after the first letter is typed.

Does removing "@" sign for direct annotation really affect the behavior in any way?

VArtzy · 9 months ago

Ok if it's intended.

Actually after doing some test it behaves the same, but @ sign give better sign. Sometimes I see remove @ make it have to scan my directory. I think it's ok now. Thank you.