Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.261 ·

countTokens now falls back to gateway sampling only on HTTP 501

Token counting now only falls back to gateway sampling on a specific HTTP 501 error.

You'll notice Bug Fixes
JSON All of v2.1.261
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Bug FixesKind: in v2.1.261,
Bug FixesSection of the release

When the direct beta.messages.countTokens call fails, Claude Code now checks that the failure is specifically an HTTP 501 before falling back to the gateway sample-count path. If that fallback itself fails, a new error is logged with the underlying failure message.

See this entry in the whole of v2.1.261 →

Feedback