[BUG] Pasting paths to images destroys the current chat
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: <!-- output of
claude --version--> 0.2.122 - Operating System: Ubuntu 24.04
- Terminal: GNOME Terminal
Bug Description
Steps to Reproduce
- Paste a path to a JPEG image
- Claude replaces the path with `[Image # 1]`
Expected Behavior
Claude would take the path and include the string in the conversation as relevant context
Actual Behavior
Claude replaced it with [Image #1], and all subsequent responses become:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.0.content.1.image.source.base64.data: Image does not match the
provided media type image/png"}}
Additional Context
Please add a setting or config to disable this feature.
Can confirm same error on Mac OS. You must fully restart the session, current session cannot continue.
this was fixed for some time today and not it is broken again - really inconvenient not to be able to use images
facing the same issue.
Fixed in v1.0.3. You should now be able to paste in jpg paths as images.
@dicksontsai excellent, thank you! Kudos to the team, Claude and cc are game changers.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.