[BUG] Pasting paths to images destroys the current chat

Resolved 💬 6 comments Opened May 20, 2025 by mceachen Closed May 24, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: <!-- output of claude --version --> 0.2.122
  • Operating System: <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 --> Ubuntu 24.04
  • Terminal: <!-- e.g. iTerm2, Terminal App --> GNOME Terminal

Bug Description

<!-- A clear and concise description of the bug -->

Steps to Reproduce

  1. <!-- First step --> Paste a path to a JPEG image
  2. <!-- Second step --> Claude replaces the path with [Image # 1]
  3. <!-- And so on... -->

Expected Behavior

<!-- What you expected to happen -->
Claude would take the path and include the string in the conversation as relevant context

Actual Behavior

<!-- What actually happened -->
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.

View original on GitHub ↗

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