Codex CLI: File suggestion bug (“no matches”) @meantianing
Resolved 💬 13 comments Opened Sep 11, 2025 by looper200 Closed Feb 19, 2026
💡 Likely answer: A maintainer (fcoury, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.34.0
Which model were you using?
gpt-5
What platform is your computer?
Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 unknown
What steps can reproduce the bug?
using @filename the file
<img width="1042" height="862" alt="Image" src="https://github.com/user-attachments/assets/c96161d3-dcc2-4ced-8495-5718e154d1eb" />
The file is there and can't suggest it also
.codexignore files:
dataset/
__pycache__/
onechar/
test.ipynb
*.pth
*.ckpt
*.ipynb
events.out*
.gitignore
dataset/
__pycache__/
logs/
onechar/
test.ipynb
*.pth
*.ckpt
*.ipynb
events.out*
What is the expected behavior?
It should suggest files. I only see this bug in recent releases.
What do you see instead?
_No response_
Additional information
_No response_
13 Comments
Exactly the same for me!
<img width="897" height="790" alt="Image" src="https://github.com/user-attachments/assets/9444a349-cdcc-4b5d-9e43-b73041505c91" />
Also running into this bug on WSL2 (Ubuntu 24.04)
I hope they fix that soon
window11 too
This should be fixed in https://github.com/openai/codex/pull/3783, I'm using the cli, so feel free to build from source.
Thanks @aminroosta! - let's see if it gets merged. Annoying...!
Hope this gets merged soon!
Still experiencing this on
v0.66.0on MacOS 26.2, attempted in Warp Terminal, Terminal.app, GhosttyEdit: Same on
v0.71.0Edit: Same on
v0.72.0Edit: Same on
v0.75.0Edit: Same on
v0.77.0Edit: Same on
v0.79.0.claudeis working fine.Edit: Same on
v0.80.0Edit: Same on
v0.86.0Interestingly, the only two files it sees are:
Same on codex-cli 0.77.0 (macos 15.5 (24F74), Ghostty 1.2.3)
In my case the only two files it sees are:
@vforsh @evanheckert @CSRessel and others in this thread: can you check if you can still reproduce this behavior on the current version?
I suspect this was fixed by https://github.com/openai/codex/pull/9279
@fcoury symptoms are almost the same on
0.104.0. The one change is that the two files it will now show are:So strangely the only thing that changed is that it does see
.vscode/settings.jsonnow but no longer sees.env.example.@evanheckert I tried replicating issue issue for some time but unfortunately, I wasn’t able to.
To help us get to the bottom of this, I asked Codex to help me create this checklist. If you have the time would you mind providing me the responses for the items below? I appreciate it!
I mostly have these, just confirm CLI and v0.104.0.
git rev-parse --is-inside-work-tree)?tree -a -L 4(or equivalent).gitignore.gitignorefiles.gitignoreabove repogit config --get core.excludesfile+ file contents)git check-ignore -v <failing-path>git check-ignore -v <working-path>@fcoury Heh, we found it. I'll include my whole reply for context, but solution is at the bottom.
1. Codex build + surface
Both CLI and Codex.app v
26.227.1448 (747). The Codex app also has the issue.[insert image of app]
2. Exact working directory
3. Minimal tree + ignore files
tree -a -L 4(or equivalent)(snipping this since not the root cause)
1679 directories, 5885 files
.gitignorefiles```ui/.gitignore
Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
.ntvs
*.njsproj
*.sln
*.sw?
.env
!e2e/.env.example
Sentry Config File
.env.sentry-build-plugin
Playwright / E2E artifacts
playwright-report
test-results
e2e/.auth
.gitignoreabove repo <-- holy smokes we might have a winner```~/.gitignore
*
!.gitignore
!.gitconfig
!.bash_history
!.npmrc
!.zshrc
!.zshenv
!.vscode
!.vscode/settings.json
!.claude/settings.json
!.config
!.config/karabiner
!.config/karabiner/karabiner.json
!.cursor
!.cursor/mcp.json
!.cursor/cli-config.json
!.codex
!.codex/config.toml
!.zprofile
!.profile
!.tmux.conf
.cursor/ide_state.json
4. One file that fails + one that works
```.sh
› @g
.gitignore
.vscode/settings.json
5. Ground truth from gitignore engine
git check-ignore -v <failing-path>git check-ignore -v <working-path>```.sh
mono on main via 🐳 orbstack via v24.13.1
❯ git check-ignore -v .vscode/settings.json
mono on main via 🐳 orbstack via v24.13.1
❯ git check-ignore -v ui/package.json