[Bug] Anthropic API Error: Empty Text Context Blocks in Messages

Resolved 💬 2 comments Opened May 25, 2026 by rudyjellis-sbl Closed May 29, 2026

Bug Description
API Error: 400 messages: text context blocks must be non-empty multiple times when a command is given

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.150
  • Feedback ID: 89538373-96a6-45f8-85e8-7aa59ec4cfc7

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages: text content blocks must be non-empty\"},\"request_id\":\"req_011CbQ181w5o472tWWEHrSCM\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:63586)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:51:7694)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-25T21:32:50.016Z"}]

View original on GitHub ↗

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