Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.318 ·

A second exit request now cuts short the wait for an OAuth token refresh

When Claude Code is shutting down and waiting on an OAuth token refresh, a repeated exit request now shortens that wait

Group of 2 You'll notice Improvements
JSON All of v2.1.318
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.318,
ImprovementsSection of the release

What

During shutdown, Claude Code already waited for an OAuth token refresh to finish before exiting. OAuth is the sign-in system that keeps Claude Code logged in, and a refresh renews the login token. That wait used to be a fixed length. It can now be shortened.

  • On a normal exit (exit code 0), waitForHeldOAuthRefresh now takes its wait length from a calculation instead of a fixed value, and widens the shutdown safety timer by the same amount.
  • It installs shortenOAuthRefreshWait. When shutdown is requested again while Claude Code is already shutting down, a further internal step runs and then shortenOAuthRefreshWait is called, which cuts the wait short.
  • Shutdown now also checks an extra condition alongside waitForHeldOAuthRefresh. When that condition holds, the wait for the refresh is skipped entirely.

Why

If a token refresh is slow, pressing Ctrl-C a second time or asking to exit again should no longer leave Claude Code hanging while it waits for the refresh.

See this entry in the whole of v2.1.318 →

Feedback