Last updated: · Applies to: custom Messages API clients and harnesses that replay thinking blocks
Fix “The block is bound to a different conversation” thinking-block 400
“The block is bound to a different conversation” is a 400 invalid_request_error caused by replaying a thinking block after its preceding conversation changed. Use the beta binding control to drop invalid blocks, or remove the named block and all later thinking blocks before retrying. When Claude Code manages your history, the official docs say nothing changes for you.
What does “The block is bound to a different conversation” mean?
This 400 invalid_request_error usually means a replayed thinking block failed the prefix check because something before it changed after it was produced. The check covers the system prompt, tools and earlier messages; these must remain unchanged for the block to be accepted.
The official thinking troubleshooting guide gives this error template, including the literal {i} and {j} index placeholders:
messages.{i}.content.{j}: Invalid `signature` in `thinking` block. The block is bound to a different conversation. Remove the block, or set `thinking.block_binding.prefix_mismatch_behavior` to "drop_block".If the request did not send the beta header, the message adds:
That setting requires the `thinking-binding-controls-2026-08-01` value in the `anthropic-beta` header.The message usually ends with a diagnostic sentence identifying what changed: the system, tools, the first differing message or block, missing or new content, or an earlier thinking block missing or out of order. That sentence is for people and logs; its wording can change, so do not match it in code.
If the message stops after the following text, with no sentence about the conversation, the signature itself did not verify because it was truncated, altered or returned empty:
Invalid `signature` in `thinking` blockprefix_mismatch_behavior does not apply to that signature-verification failure. Edited thinking text is a separate error:
`thinking` or `redacted_thinking` blocks in the latest assistant message cannot be modifiedWhen does Fable 5.2 return it?
Fable 5.2 and Mythos 5.2 return a 400 for an invalid replayed thinking block when prefix_mismatch_behavior is unset, regardless of account age. Its default is "error".
| Model | Account rule relevant to migration |
|---|---|
| Claude Fable 5.2 and Claude Mythos 5.2 | The error applies to every account. |
| Claude Fable 5.1 | The error applies by default to accounts created on or after August 31, 2026. |
| Claude Mythos 5.1 | On the Claude API, it already returns the error on every account. |
| Claude Opus 5.5, Claude Sonnet 5.5 and Claude Haiku 5.5 | These models also run the prefix check. |
Code that edits history can therefore run without errors on an older Fable 5.1 account and fail after switching to Fable 5.2. See the Fable 5.2 migration guide for the other breaking changes.
What causes the prefix mismatch?
A prefix mismatch comes from changing the history before a thinking block and then replaying that block. Common causes are:
- Editing, reordering or removing an earlier turn.
- Injecting a per-turn reminder and removing it on a later request.
- Rebuilding the system prompt or tools array.
- Compacting history on the client while retaining recent turns and their thinking verbatim.
Server-side compaction at a token threshold and context editing never trigger this error.
How do I continue after the error?
Continue by dropping invalidated reasoning with the beta control, or by removing the affected thinking blocks from stored history. Retrying the same request body does not clear the error; fixing the code alone also leaves the edit in stored history.
Option 1: let the API drop invalid blocks
Send this beta header on the retry and every later request:
anthropic-beta: thinking-binding-controls-2026-08-01Set this request-body fragment on the retry and every later request:
{
"thinking": {
"type": "adaptive",
"block_binding": {
"prefix_mismatch_behavior": "drop_block"
}
}
}The request succeeds without the invalidated reasoning, and the response lists each dropped block in a top-level input_transformations array. On Claude Sonnet 5.5 and Claude Haiku 5.5, block_binding works only with thinking: {"type": "adaptive"}.
Treat "drop_block" as a stopgap while you fix the history edit: dropping blocks can raise output tokens. Sending thinking.block_binding without the beta header returns a 400 whose message ends in:
block_binding: Extra inputs are not permittedOption 2: remove the invalidated blocks yourself
Strip the block named by the error and every later thinking and redacted_thinking block, leave each turn's other blocks in place, then retry once.
How do I stop it happening again?
Keep history append-only: pass earlier turns back exactly as sent and received. Add instructions with a mid-conversation system message instead of editing the system prompt or tools, and let server-side context editing or compaction do any trimming.
A block from a model the target model cannot read never produces this conversation-binding error. The API drops it and, under the beta header, reports the drop in input_transformations with reason "model_binding_mismatch" when switching models.
What if Claude Code manages my history?
No request-history changes are required when Claude Code manages the conversation. The official docs state:
Nothing changes for you if Claude Code, claude.ai, Claude Managed Agents, or the Claude Agent SDK manages your conversation history.
This page mainly serves people whose own code or harness builds the messages array. For model selection, plans and specifications, return to the Fable 5.2 overview.
FAQ
The fixes depend on whether a block failed its prefix check or its signature verification.
Will retrying the same request fix this 400?
No. The stored history still contains the edit, so retrying the same body or only fixing future code does not clear it. Drop invalid blocks with the beta control, or remove the named block and every later thinking and redacted_thinking block before retrying.
Does prefix_mismatch_behavior fix a broken signature?
No. If the message stops after Invalid `signature` in `thinking` block with no sentence about the conversation, the signature itself failed verification. The prefix mismatch control does not apply.
Can server-side compaction cause this error?
No. Server-side compaction at a token threshold and context editing never trigger this error. Client-side compaction that keeps thinking blocks while changing earlier history can trigger it.
Does switching models produce this conversation-binding error?
No. A block the target model cannot read is dropped. With the thinking-binding-controls-2026-08-01 beta header, input_transformations reports model_binding_mismatch when switching models.
Do Claude Code users need to rebuild their conversation history?
No changes are required when Claude Code manages the history. This guide is mainly for applications and custom harnesses that build their own messages array.
Official sources
Anthropic’s thinking, error and migration documentation supports the diagnosis and recovery steps above.
Unofficial guide, not affiliated with or endorsed by Anthropic. This page follows the official sources listed above, checked November 9, 2026.