claude-code - 💡(How to fix) Fix [BUG] Sharing picture without text in Claude Code via Windows App causes session to stall permanently [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

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…
GitHub stats
anthropics/claude-code#54225Fetched 2026-04-29 06:32:58
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×4renamed ×1

Error Message

When I post an image (like a screenshot) in Claude Code chat (desktop app, Windows), and doesn't provide any text with it, then the entire session goes stall. From there, it will not accept any messages or input - every response will be API Error: 400 like below: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_011CaVoWKJsUBG3Dr1x3Mwb3

Error Messages/Logs

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?

When I post an image (like a screenshot) in Claude Code chat (desktop app, Windows), and doesn't provide any text with it, then the entire session goes stall. From there, it will not accept any messages or input - every response will be API Error: 400 like below:

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"},"request_id":"req_011CaVoWKJsUBG3Dr1x3Mwb3

What Should Happen?

You should be able to send pictures / screenshots without accompanying with any text.

Error Messages/Logs

Steps to Reproduce

Just paste and picture without text and you will see it. I am able to reproduce this every single session.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude 1.4758.0 (fb266c) 2026-04-24T20:22:30.000Z

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Non-interactive/CI environment

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by ensuring that text content blocks are non-empty when sending messages with images.

Guidance

  • Verify that the API request being sent includes a non-empty text field, even if it's just a space or a default message, to comply with the API's requirements.
  • Check the code that constructs the API request to ensure it handles cases where no text is provided with an image.
  • Consider adding a default text message, such as "Image attached", when a user sends an image without accompanying text.
  • Review the error handling mechanism to provide a more user-friendly error message instead of the raw API error.

Example

No code snippet can be provided without more context about the codebase, but the fix likely involves modifying the code that sends the API request to include a non-empty text field.

Notes

The exact fix depends on the specifics of the code and how it interacts with the Anthropic API. This guidance assumes that the issue is due to the API's requirement for non-empty text content blocks.

Recommendation

Apply a workaround by ensuring that all messages include a non-empty text field, as this is a requirement of the Anthropic API.

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] Sharing picture without text in Claude Code via Windows App causes session to stall permanently [1 participants]