AI EngineerGuide

The block is bound to a different conversation

Claude API, HTTP 400, invalid_request_error.

Example message:

messages.1.content.0: 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".

What it means

A thinking block failed the prefix check: system, tools or an earlier message changed after Claude produced it, or a thinking block between others was left out or moved. “A different conversation” means different content before the block, not a different session or user.

messages.1.content.0: 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”.

Fix a thinking block bound to a different conversation (checked 2026-11-20)

Match only on “The block is bound to a different conversation”, because the rest of the message can change.

Fix a thinking block bound to a different conversation (checked 2026-11-20)

Every 400 error has the type invalid_request_error, and this one has no error.details.error_code.

Fix a thinking block bound to a different conversation (checked 2026-11-20)

Stop the errors now

Stopgap to stop the errors now: set prefix_mismatch_behavior to "drop_block" with the beta header, on every later request in that conversation (the API doesn’t store it). It drops the invalid thinking, which can cost more output tokens and invalidates the prompt cache from the first dropped block.

{
  "thinking": {
    "block_binding": {
      "prefix_mismatch_behavior": "drop_block"
    },
    "type": "adaptive"
  }
}

Header: anthropic-beta: thinking-binding-controls-2026-08-01

Long-term fix

Send every earlier message exactly as you sent it before, and put each update in a new message at the end. Store any context your code adds to a message with that message.

A pair of requests that causes it (Date in system prompt):

Earlier request
{
  "max_tokens": 4096,
  "messages": [
    {
      "content": "Fix the failing test.",
      "role": "user"
    }
  ],
  "model": "claude-fable-5-2",
  "system": "You are a coding agent. Today is 2026-11-18."
}
Next request
{
  "max_tokens": 4096,
  "messages": [
    {
      "content": "Fix the failing test.",
      "role": "user"
    },
    {
      "content": [
        {
          "signature": "sigA1",
          "thinking": "",
          "type": "thinking"
        },
        {
          "text": "Done.",
          "type": "text"
        }
      ],
      "role": "assistant"
    },
    {
      "content": "Now run the linter.",
      "role": "user"
    }
  ],
  "model": "claude-fable-5-2",
  "system": "You are a coding agent. Today is 2026-11-19."
}

Other prefix-check errors

All errors · Reason codes

Last checked 2026-11-20 against Anthropic's docs.

FAQ

Why doesn't sending the same request again work?

Your history still holds what your code changed. Send "drop_block" (with the beta header) on every later request in that conversation to stop the errors, then make your code append-only.

The error says to remove the block. Is that enough?

No. Removing only that block isn’t enough: remove it and every thinking and redacted_thinking block after it, or the same error names the next invalid one.

How should my code detect this error?

Match only on the phrase “The block is bound to a different conversation”. The rest of the message can change, and the error has no error.details.error_code.