claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Inconsistent tab completion behavior in Claude Code (Windows, Git Bash)

Open mathiaswillburger opened this issue 3 months ago • 3 comments

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 TAB only completes up to the latest path node.
  • For others, pressing TAB completes the entire path as expected.
  • Pressing ENTER on a not-fully-completed entry always completes the full path, but this behavior is inconsistent with TAB.
  • 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

  1. Type @authservice
  2. A list of suggested entries is shown
  3. Press TAB
    • Only api\app\Services\ is inserted (not the full path api\app\Services\AuthService.php)
  4. Type @dashboard
  5. Select an entry from the list
  6. Press TAB
    • The full path is inserted correctly: @frontend\src\features\dashboard\types\DashboardTypes.ts

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

mathiaswillburger avatar Sep 16 '25 18:09 mathiaswillburger

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.

github-actions[bot] avatar Dec 05 '25 10:12 github-actions[bot]

If possible remove the platform:windows; the same happens on Linux.

I opened #14184 with different keywords, but the problems is exactly the same.

f15u avatar Dec 16 '25 15:12 f15u

This is very annoying and still happens.

vini2003 avatar Dec 18 '25 21:12 vini2003