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

[BUG] CC "Image cannot be empty" when pasting a copied selection of a CSV

Open aemotyka opened this issue 4 months ago • 9 comments

Environment

  • Platform (select one):
    • [ ] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [x] Other: Claude Code
  • Claude CLI version: 1.0.85 (Claude Code)
  • Operating System: MacOS 15.6
  • Terminal: vscode terminal

Bug Description

When pasting a selection copied from a csv into CC, the pasted text appears briefly, and then gets truncated to "[Image #1]". Upon submitting the prompt, I receive "API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.150.co ntent.0.image.source.base64: image cannot be empty"},"request_id":"req_011CSKg7yABsUTCZR9sW4QmP"}"

The issue persists in subsequent queries that do not include the selection, and it becomes impossible to continue the conversation, because every subsequent prompt receives that error. The error also occurs if the pasted text is removed from the prompt before sending.

No images were included anywhere in the conversation.

Steps to Reproduce

  1. Paste a copied selection from a csv opened in numbers on a mac into the CC terminal in VSCode
  2. Submit, or remove the pasted text and submit
  3. Submit additional queries without the pasted test

Expected Behavior

A normal response, i.e. not an error that falsely suggests an image was included in the prompt

Actual Behavior

I received the following error in this and all subsequent queries: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.150.co ntent.0.image.source.base64: image cannot be empty"},"request_id":"req_011CSKg7yABsUTCZR9sW4QmP"}

Additional Context

Image

aemotyka avatar Aug 20 '25 21:08 aemotyka