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.282 ·

Token counting requests now use a custom fetch function when one is set

Requests to count tokens now go through the client's own fetch function when one is configured, rather than always the default

Under the hood Internal Changes
JSON All of v2.1.282
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SDKArea: what it touches
Internal ChangesKind: in v2.1.282,
Internal ChangesSection of the release

Unclear Where the custom fetch function comes from, and so which setups are affected, is not settled.

What

Claude Code can ask the API how many tokens a message would use, through /v1/messages/count_tokens. Tokens are the units of text the model reads. That request now uses a custom fetch function from the client's configuration when one is set, instead of always using the default. A fetch function is the code that sends web requests.

Why

When a custom fetch is configured, token counting can follow the same route as other requests, such as through a proxy or an authentication wrapper.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhere the custom fetch function comes from, and so which setups are affected, is not settled.

See this entry in the whole of v2.1.282 →

Feedback