Skip to content

[BUG] Pasting paths to images destroys the current chat #1182

@mceachen

Description

@mceachen

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI 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.

Metadata

Metadata

Assignees

Labels

area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions