Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.308 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.1 ·

Extended Thinking Detection for API Calls

Entry
JSON All of v2.0.1
EntryKind: in v2.0.1,
ChangesSection of the release

What: Added automatic detection of extended thinking content in conversation history to ensure accurate token counting and proper API parameter configuration.

How it works: When Claude Code needs to count tokens for API calls, it now scans through the message history to detect if any assistant responses contain thinking or redacted_thinking blocks. If detected, it automatically includes the appropriate thinking parameters in the API call.

Details:

  • Detects both thinking and redacted_thinking content types
  • Automatically adjusts token counting for conversations with extended thinking
  • Ensures API calls include proper thinking budget parameters (1024 tokens)
  • Improves accuracy when estimating costs for conversations using extended thinking
  • Evidence: uS2() at line 376194 (new detection function), enhanced TZ1() at line 376212 and dS2() at line 376234

See this entry in the whole of v2.0.1 →

Feedback