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

Resolved 💬 5 comments Opened Feb 4, 2026 by aemotyka Closed Mar 15, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When pasting a selection copied from a csv into CC, the pasted text appears briefly, and then gets truncated to "[Image https://github.com/anthropics/claude-code/pull/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.

<img width="858" height="335" alt="Image" src="https://github.com/user-attachments/assets/12fd0b0c-ee98-4a77-bbeb-de5d5c9aa241" />

What Should Happen?

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

Error Messages/Logs

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"}

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

Claude Model

Not sure / Multiple models

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

1.0.96 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

NOTE: This is a re-opening of #6213 which was incorrectly despite recent human comments. That issue did not receive any attention during the 6+ months it was opened.

View original on GitHub ↗

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