claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Pasting paths to images destroys the current chat

Open mceachen opened this issue 9 months ago • 3 comments

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

  1. Paste a path to a JPEG image
  2. 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.

mceachen avatar May 20 '25 00:05 mceachen

Can confirm same error on Mac OS. You must fully restart the session, current session cannot continue.

wanderingnature avatar May 20 '25 06:05 wanderingnature

this was fixed for some time today and not it is broken again - really inconvenient not to be able to use images

wanderingnature avatar May 20 '25 22:05 wanderingnature

facing the same issue.

sankalpsingha avatar May 22 '25 22:05 sankalpsingha

Fixed in v1.0.3. You should now be able to paste in jpg paths as images.

dicksontsai avatar May 24 '25 12:05 dicksontsai

@dicksontsai excellent, thank you! Kudos to the team, Claude and cc are game changers.

mceachen avatar May 24 '25 15:05 mceachen

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.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]