[BUG] Inconsistent tab completion behavior in Claude Code (Windows, Git Bash)
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 using Claude Code for path completions, the TAB key does not behave consistently and sometimes autocompletes the full path, while other times it only completes up to the last path node.
Important
This issue is not related to problems with spaces in folder or file names. It is different from and unrelated to the issues already tracked in #6154, #1934, #4741, or #4632.
What Should Happen?
Expected behavior
TAB should always complete the selected entry fully - regardless of whether it is partially completed or not. This would make the behavior consistent and predictable.
Actual behavior
- For some entries, pressing
TABonly completes up to the latest path node. - For others, pressing
TABcompletes the entire path as expected. - Pressing
ENTERon a not-fully-completed entry always completes the full path, but this behavior is inconsistent withTAB. - The issue does not occur on all entries, and there is no clear or predictable pattern to when it happens.
Environment
- Windows
- Git Bash
- Claude Code 1.0.115
Impact
The inconsistent behavior is confusing. Users would reasonably expect TAB to always complete the selected suggestion fully, without needing to use ENTER for some cases.
Request
Make TAB completion consistent across all entries so it always inserts the full selected entry (either path or file, depending on selection).
Error Messages/Logs
Steps to Reproduce
- Type
@authservice - A list of suggested entries is shown
- Press
TAB- Only
api\app\Services\is inserted (not the full pathapi\app\Services\AuthService.php)
- Only
- Type
@dashboard - Select an entry from the list
- Press
TAB- The full path is inserted correctly:
@frontend\src\features\dashboard\types\DashboardTypes.ts
- The full path is inserted correctly:
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
No response
Claude Code Version
1.0.115
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
No response
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
If possible remove the platform:windows; the same happens on Linux.
I opened #14184 with different keywords, but the problems is exactly the same.
This is very annoying and still happens.