[BUG] Adding image to message first breaks "@" context when confirming file selection
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?
If I take a screenshot on MacOS, and drag it into Claude Code message to add to context, then I continue to type my message, when I "@" a file or folder to add to context and press enter to confirm the file it submits the message instead of letting me continue typing.
Also, when it submits the message it only uses part of the "@" pathname cna doesn't include the file in the context submitted.
What Should Happen?
"@" file/folder context works fine if I don't add an image before I use it.
Error Messages/Logs
Steps to Reproduce
- Start new session
- CMD+SHIFT+4 to take a screenshot on MacOS and drag the image into the Claude chat in your terminal.
- Type some words then "@" a file, press enter to confirm the file that shows in the preview.
- This submits the message at this point instead of continuing with the message.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
around 2.1.14
Claude Code Version
2.1.17 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
I'm using Warp but it does the same thing in Terminal.app.
It was working fine a few days ago around Monday/Tuesday. I think it was v2.1.14
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗