[Bug] Anthropic API Error: cache_control cannot be set for empty text blocks when pasting images

Resolved 💬 3 comments Opened Apr 25, 2026 by Nyash123 Closed Apr 28, 2026

Bug Description
リモートコントロール(claude.ai web)から画像を貼り付けると、以下のAPIエラーで送信が失敗します。 API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.0.content.4.text: cache_control cannot be set for empty text blocks"},"request_id":"req_011CaQDeUrM1iB76EfW8ZXhV"} 環境: - Claude Code v2.1.119 - Windows 11 - リモートコントロール(ブラウザ)から画像貼り付け時に発生 確認済み: - v2.1.119 へのアップデート → 効果なし - ハード再読込(Ctrl+Shift+R)→ UIが変わらず効果なし - 画像貼り付け前にテキストを1文字入力 → 効果なし - 1度に貼る画像を1枚に制限 → 効果なし 別プロジェクトでは同じ操作でエラーが出ず、画像添付UIの表示も微妙に異なるため、フロントエンド側のメッセージ構築ロジックの問題と推測しています。

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.119
  • Feedback ID: 8cf14560-dc0c-4336-98e5-38b63838921d

Errors

[]

View original on GitHub ↗

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