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

OAuth Refresh Lock: Named Error, Compromise Detection, and Longer Stale Timeout

Entry
JSON All of v2.1.211
EntryKind: in v2.1.211,
ImprovementsSection of the release
What

The OAuth token refresh lock now uses a named error class (OAuthRefreshLockContendedError), exposes an isCompromised() predicate and an abort signal, and raises the stale-lock timeout from 10 seconds to 60 seconds with a 5-second update heartbeat.

Details
  • OAuthRefreshLockContendedError is thrown when the lock is contended after max attempts, replacing the previous untyped error.
  • A new onCompromised callback receives a dedicated AbortController signal that is aborted when compromise is detected, allowing in-flight refreshes to be cancelled.
  • The increased stale timeout (60 s) reduces false-positive "lock compromised" events on slow systems.
Evidence

New named error class (search for "OAuthRefreshLockContendedError")

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.211 →

Feedback