You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
What
max_tokens is the most text a reply may contain. When a provider rejects a request, Claude Code can send it again with a lower max_tokens. That logic was reworked:
The ceiling is now worked out for each request
Continuing a reply that was cut off can cap the ceiling
A lowered cap is kept only once a reply actually starts arriving
The warning now says the request failed, and a reply began when it was sent again with a lower max_tokens
This changes when and how Claude Code lowers the reply length limit after a failed request. Because a lowered cap is kept only after a reply begins, a retry that also fails no longer locks in a smaller limit.