You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
API ErrorsArea: what it touches
Bug FixesKind: in v2.1.333,
Bug FixesSection of the release
What
When a request is too large for the model, the API answers with a "prompt is too long" error that states how many tokens were sent and what the limit is. Tokens are the small chunks of text the model counts its input in. Claude Code reads those two numbers out of the error text. It now copes with more wordings between the phrase and the numbers, and it will not run on into a second copy of the phrase in the same message.
Why
Claude Code uses these numbers to recover when a conversation grows too big. Reading them from more error formats means that recovery works in more cases.