[Bug] File autocomplete suggestions disappear when navigating subdirectories with @ syntax
Status Open
Reported on v2.1.31
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 5 comments · opened Feb 5, 2026
Bug Description
"I cannot see autocomplete or suggestions for file referencing when typing '@'. typing '@' doesn't show anything and then typing another character after that, like 'a', shows the list of agents and then the list of top-level files and directories. However, when I tried to keep typing to go into one of the subdirectories, the autocomplete or suggestions just vanish. just This behavior is useless and different from earlier versions of claude code. This makes referencing files using claude code without and ide like vscode a lot harder."
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.1.31
- Feedback ID: 8813d02b-2bcb-4a87-a45d-fbd1cfd8cc7f
Errors
[]
5 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This issue #15816 is different because this happens for small directories as well, in the case of my project. My project has a couple nested folders and I saw no autocompletion or suggestions
This issue #14325 is different although I do encounter the same problem here but my issue runs deeper than just it does not trigger on @ alone.
This issue #20205 is completely different.
I just tested with version 2.1.32 and this is still happening.
This is breaking my brain most of the time I use the
@feature. when the path selection suggestions do appear, I can't reliably use it to tab complete directories the same way I use in a shell (and which is hardwired into muscle-memory).In particular, a space will be inserted at the end of the completed path, whenever the user interacts with the list of suggested paths appearing below the prompt -- in contrast to when the user only tab completes prefixes they have typed. this breaks path autocompletion as you have hit backspace before you can continue expanding subdirectories.
It seems to me that the UX friction point here is that only a small number of paths fit in the suggestion area, so one can't see at a glance what the complete set of options are to pick from. at this point I find myself doing one of two things:
In either case a space ends up being inserted at the end of the selected path (breaking tab completion through further paths), or in the case of 2, you might get the first completion at the top of the list.
Reproduction + Workaround
I've been able to narrow this down to a specific trigger in my environment: an initialized git repo with no commits.
Environment
Full sequence
✅ Step 1 — Plain directory, no git (autocomplete works)
Open Claude Code, type
@REA— file suggestions appear as expected.---
❌ Step 2 — After
git initwith no commits (autocomplete broken)Close and reopen Claude Code, type
@REA— file suggestions disappear and only agents are shown if there's a match. This reproduces the issue described in this report.---
✅ Step 3 — After at least one commit (autocomplete works again)
Close and reopen Claude Code, type
@REA— file suggestions are back and working correctly.Workaround
Make an initial commit before opening Claude Code in a new repo.
Incredibly, @frayer's solution works perfectly for me - MacOS Claude Code 2.1.114
I have been losing it for days and just manually typing paths. Off to instruct Claude to always commit when they update ...