Prefix `./` to completion of `@{filename}` if the path is not obviously a path
Open 💬 2 comments Opened May 24, 2026 by user202729
What variant of Codex are you using?
CLI
What feature would you like to see?
This is similar to https://github.com/openai/codex/issues/6915, but the feature request is different: the author request for @ to be kept after the tab completion.
Instead, I propose the following: say there's a file hello in the current directory, you type @h and tab, it will complete to hello. Since the agent has no idea that it was tab-completed from a filename, it wouldn't know it's intended to be a filename.
It would be better (and still reasonably backwards compatible) to: if the file does not have an extension and is in the current directory, prefix ./. So in the example above the agent will see ./hello which is obviously a file path.
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗