Skip to content

[BUG] File path suggestions are truncated with ... in Claude Code autocomplete even when sufficient screen space is available #17443

Description

@Rock0007

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When using the @ file reference autocomplete in Claude Code, long file paths are truncated with ..., making it difficult to distinguish between similar files and folders.

This happens consistently in:

  • Windows Command Prompt (cmd.exe)
  • PowerShell
  • Windows Terminal

Even after maximizing the terminal window, increasing the pane size, and reducing font size, the autocomplete list still truncates paths instead of showing the full file names.

For projects with deeply nested folder structures or similar filenames, this significantly reduces usability and increases the chance of selecting the wrong file.

Example:

src/features/user-settings/routes/userSetti...
src/features/user-settings/routes/userSetti...

Both entries become indistinguishable.

What Should Happen?

Claude Code should:

  1. Display the full file path or full file name in the autocomplete list whenever sufficient terminal width is available, OR
  2. Provide an option to:
  • disable truncation, or
  • show the full path on selection / in a preview panel, or
  • horizontally scroll long entries.

This would allow users to clearly differentiate between similar files and improve developer productivity, especially in large codebases.

Error Messages/Logs

Steps to Reproduce

  1. Open a project with long and deeply nested folder/file paths.
  2. Launch Claude Code in any terminal (cmd, PowerShell, Windows Terminal, or WSL).
  3. Type @ followed by a partial folder or file name (for example: @users).
  4. Observe the autocomplete suggestions.

Result:
Long file paths are truncated with ....

Expected:
Full paths or full file names should be visible or accessible.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.3

Claude Code Version

2.1.4

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal
Powershell
Linux Terminals
Mac Os Terminals

Additional Information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions