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

Claude Code v2.1.236 ·

SDK hosts can decline an OAuth token refresh and say why

An SDK host can now refuse to refresh your login token and say why.

Under the hood Improvements
JSON All of v2.1.236
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SDKArea: what it touches
ImprovementsKind: in v2.1.236,
ImprovementsSection of the release
What

When Claude Code asks its SDK host to refresh an OAuth token, the host may now answer with no token plus an optional reason, and the client treats that as a clean decline rather than an assumed success.

Details
  • The refresh path returns null when the host declines or answers empty, and records the host's stated reason.
  • A new tengu_sdk_oauth_refresh_unfulfilled event distinguishes stream_closed, timeout, invalid_response, declined and null outcomes, with a duration.
  • The reason field is parsed leniently, so an unknown or malformed value becomes undefined and can never cost a token that was actually delivered.
  • SDK transport only.
Evidence

tengu_sdk_oauth_refresh_unfulfilled, Why the host returned no token (only meaningful when accessToken is null)

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.236 →

Feedback