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 impactNo 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 knowingYou 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 impactNothing 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
| Parameter | Change | Breaking | Models |
|---|---|---|---|
messages | changed | no |