Follow Discord
Sweep 23 Oct 2026 · 21:48Z Build v2.1.310 529 read Stable v2.1.308 Latest v2.1.310 Next v2.1.310 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.310 ·

More provider errors are recognised as message role errors

Claude Code now treats more API errors as errors about an unsupported message role, not just those mentioning "Unexpected role"

You'll notice Improvements
JSON All of v2.1.310
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
API ProvidersArea: what it touches
ImprovementsKind: in v2.1.310,
ImprovementsSection of the release
What

Each message sent to a model has a role, such as user or assistant. Some providers reject a role they do not support. Claude Code used to recognise this kind of error only when it said "Unexpected role" along with "input message role". It now also recognises a further pattern of error text, so more errors from providers are treated as this kind.

Why

More of these errors now get the handling Claude Code already gives to role errors, rather than being treated as some other failure.

See this entry in the whole of v2.1.310 →

Feedback