Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Reply length cap is lowered more carefully after a rejected request

Claude Code now works out the reply length cap for each request and keeps a lowered cap only once a reply actually starts

You'll notice Improvements
JSON All of v2.1.327
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

Setting CLAUDE_CODE_MAX_OUTPUT_TOKENS overrides the ceiling.

Why

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.

See this entry in the whole of v2.1.327 →

Feedback