[BUG] `@` file picker autocompletes a partial path when using `Tab`, instead of the full path
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When I type @ and type the partial name of a file, pressing <kbd>Tab</kbd> most of the time only autocompletes a part of the path, instead of the full path.
For example, when I type @DatCon and hit <kbd>Tab</kbd> in the scenario below, I get only @src/client/components/, regardless of whether I select a file using <kbd>↑</kbd> or <kbd>↓</kbd>.
─────────────────────────────────────────────────────────────────────────────────────
❯ @DatCon
─────────────────────────────────────────────────────────────────────────────────────
+ src/client/components/table/DateColumn.ts
+ src/client/components/DataContext/DataContext.tsx
What Should Happen?
Instead, it should complete the full path of the selected file (or the first file if I don't use <kbd>↑</kbd> or <kbd>↓</kbd>).
Error Messages/Logs
Steps to Reproduce
- Set up a repository with the files above
- Start
claude - Type
@DatCon - Hit <kbd>Tab</kbd>
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.47 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
Previous issues #7715 and #14184 were closed after inactivity, the latter as duplicate of the former. EDIT: #23094 Looks very similar as well, also closed due to being an inactive "duplicate".
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗