{"version":"2.1.337","anchor":"message-stop-from-block-index-now-also-covers-refusal-handof","canonical_anchor":"message-stop-from-block-index-now-also-covers-refusal-handof","heading":"Stream end markers also cover a refusal handed to another model","tier":"internal","area":"Streaming","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/message-stop-from-block-index-now-also-covers-refusal-handof","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Stream end markers also cover a refusal handed to another model\n\nClaude Code now makes its own message_stop event when the API refuses in a reply's first block and another model takes over\n\n**Unclear.** It is not clear whether only the description of this event changed or whether Claude Code now also sends it in this case.\n\n**What**\n\nWhen Claude Code ends a streamed reply itself, its message_stop event can name from_block_index, the position from which content blocks were left unfinished. That now also covers one more case: the API refuses inside the first block of the reply, and another model takes over.\n\n**Why**\n\nA program reading the stream can throw away the partial pieces left before the refusal, and keep only what the other model writes.\n\n- Area: Streaming\n- Names: `from_block_index`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}