claude-code - 💡(How to fix) Fix [BUG] Claude code fails when sharing image only

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

API Error: 400 messages: text content blocks must be non-empty

Code Example

API Error: 400 messages: text content blocks must be non-empty
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

I am using claude code in windows app to build websites via github and vercel. At a certain point I only shared a screenshot (no text) after a long session. The session became unusable after that with API Error: 400 messages: text content blocks must be non-empty. Even if I tried just simple hello messages, it wont allow me to do anything in that session.

What Should Happen?

It should have thrown an error and told me not to paste just screenshot.

Error Messages/Logs

API Error: 400 messages: text content blocks must be non-empty

Steps to Reproduce

Try pasting just screenshot in a long ongoing claude code sesson

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

latest

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

just using code under claude code session

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude code fails when sharing image only