[BUG] cloud code chat window does not show file name, just its extension sh, when I drag a file eg. script.sh
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 drop a file such as myscript.sh in mac to cloud code app chat window, it shows only a .sh in chat window so I am not sure if I aded right file. It should show full filename, with path preferably.
What Should Happen?
When I drop a file such as myscript.sh in mac to cloud code app chat window, it shows only a .sh in chat window so I am not sure if I aded right file. It should show full filename, with path preferably.
Error Messages/Logs
Steps to Reproduce
drag - drop a file from a local folder to claude code chat.
<img width="1698" height="934" alt="Image" src="https://github.com/user-attachments/assets/5c30ad03-a9ef-45b4-b6be-286d3c4fb409" />
see my chat - claude code suggested filing issue about this:
When I added the start-mac-asentaja.sh to chat it shows only as .sh in the message history. Often I wonder if I attached right script so it would be better to see what is the actual file/path
That's a Claude Code UI limitation — the file reference chips only show the filename, not the full path. There's no way to see the full path from the chip itself without opening it.
A workaround: when attaching a file you're unsure about, just glance at the path in the @-autocomplete before confirming — it shows the full path there. Once attached, it's gone.
Worth noting as feedback to Anthropic — hovering the chip to show the full path would be a useful improvement.
It does not even show file name, just .sh
Right, even worse than I described — just the extension as a grey chip, no filename at all. Definitely worth reporting at github.com/anthropics/claude-code/issues.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude 1.8555.2 (a476c3) 2026-05-22T23:04:37.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗