codex icon indicating copy to clipboard operation
codex copied to clipboard

Mention files

Open jacobhallgren opened this issue 1 year ago • 5 comments

What version of Codex is running?

codex-cli 0.21.0

Which model were you using?

gpt-5

What platform is your computer?

win32

What steps can reproduce the bug?

I don't know if this is as design but in windows @file to mention a file does not work.

jacobhallgren avatar Aug 12 '25 08:08 jacobhallgren

@ does not even show for me in windows codex? it works without problems on mac.

doczoidberg avatar Sep 18 '25 07:09 doczoidberg

Workaround until it is fixed: you can use /mention at the beginning of the command

also, it works, when my keyboard layout is en-US. The "@" symbol on my layout ("de-CH") is located at "ALT GR + 2". In the US layout is "SHIFT + 2". Maybe that's something to look into.

I think that's the problem: https://github.com/openai/codex/blob/5996ee0e5f75e4f27afd76334db78a33a7fec997/codex-rs/tui/src/bottom_pane/textarea.rs#L219

            // Insert plain characters (and Shift-modified). Do NOT insert when ALT is held,
            // because many terminals map Option/Meta combos to ALT+<char> (e.g. ESC f/ESC b)
            // for word navigation. Those are handled explicitly below.

epoyraz avatar Sep 22 '25 11:09 epoyraz

Using italian keyboard under windows in terminal I can't write €, [, ], @, # as they all need "ATL gr" to be written.

bago avatar Sep 25 '25 07:09 bago

This is a just terminal problem (at least for me). Do you try this in Git Bash by chance?

WinTTY (Git Bash) sends for example Ctrl + Alt + q if I want an @ on a German keyboard. ConPTY (WSL, PowerShell, Cmd) directly converts into an @ <- the shell does see an "@".

So you can

  • use WSL
  • Start the Git bash inside a ConPTY (for example start a powershell and type "bash")

Still I think this should be supported natively. Claude Code and Gemini run just fine in Git Bash.

tobiaswaggoner avatar Nov 14 '25 08:11 tobiaswaggoner

I just tested with the newest release of codex and this is not an issue anymore. Can be closed

epoyraz avatar Nov 20 '25 21:11 epoyraz