[BUG] @ file picker in Desktop app truncates path suffix (filename) instead of prefix

Resolved 💬 3 comments Opened Mar 17, 2026 by ulad-ramanovich Closed Mar 20, 2026

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?

In the Claude Code Desktop app, when using the @ file picker to reference files, long paths are truncated from the end (cutting off the filename itself) instead of from the beginning (which would preserve the filename).

This makes it impossible to distinguish between files with similar paths but different names, since the differentiating part (the filename) is exactly what gets cut off.

Example:

.claude/agents/gadk-ch...   ← should be: ...agents/gadk-changelog.md
.claude/agents/gadk-do...   ← should be: ...agents/gadk-docs.md

What Should Happen?

Paths should be truncated from the left (directory prefix), preserving the filename at the end:

...agents/gadk-changelog.md
...agents/gadk-docs.md

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code Desktop
  2. Open a project with nested directories (e.g. .claude/agents/, .claude/skills/)
  3. Type @ in the prompt box
  4. Observe the file picker dropdown

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

Claude 1.1.7053 (cc1949) 2026-03-16T22:55:50.000Z

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗