{"version":"2.1.332","anchor":"aws-event-stream-decoding-rewritten","canonical_anchor":"aws-event-stream-decoding-rewritten","heading":"Bedrock streaming responses are decoded in a new way","tier":"notice","area":"Bedrock","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/aws-event-stream-decoding-rewritten","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Bedrock streaming responses are decoded in a new way\n\nClaude Code rewrote how it reads streamed Bedrock responses, now verifying checksums and rejecting chunks that are not raw bytes\n\n**What**\n\nWhen Claude Code uses Claude through Amazon Bedrock, replies arrive as a stream of small pieces. The code that reads this stream has been rewritten. It now:\n\n- verifies each piece's checksum (a number used to detect damaged data)\n\n- reuses header information instead of rebuilding it each time\n\n- takes a faster route for pieces whose contents are base64-encoded text\n\n- rejects pieces that are not raw bytes, with the error \"Event stream chunks must be bytes.\"\n\n**Why**\n\nFor Bedrock users this could change how reliably or how quickly streamed replies come through.\n\n- Area: Bedrock\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5\n- Scope: org\n- Heads-up: yes"}