Anthropic Capability minor

Messages API stops rejecting consecutive same-role turns

Consecutive user or assistant messages are now merged into a single message instead of returning an error, and the first message in a request no longer has to be a user message.

What does this mean for me?

  • Engineering leadership

    Cost, risk, timeline, team impact No impact

    No action — a relaxation of API validation that removes some client-side code, with no cost or risk implications.

  • Engineer

    What to change, what breaks, what to test Worth knowing

    You can now send consecutive same-role messages (they get merged) and start a request with an `assistant` message. Delete transcript-normalisation code in agent loops and retry paths; no valid existing request changed behaviour.

  • General consumer

    Using the Claude apps, not the API No impact

    Nothing to do — this is an API-only change and does not affect the Claude apps.

On October 8, 2024 the Messages API loosened its turn-ordering rules. Two adjacent messages with the same role are combined rather than rejected, and a request may start with an assistant message.

This removed a class of client-side bookkeeping: agent loops that append tool results, retries, or partial assistant turns no longer have to normalise the transcript before sending it. It is a relaxation, so no existing valid request changed behaviour.

API surface

ParameterChangeBreakingModels
messageschangedno

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person