Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.265 ·

SDK query supports waiting for a held OAuth token refresh during shutdown

SDK query can now wait for an in-progress OAuth token refresh before shutting down

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaSDKwhat it touches
KindInternal Changesin v2.1.265,
Under the hood

SDK query can now wait for an in-progress OAuth token refresh before shutting down

What

The SDK's query process gains a waitForHeldOAuthRefresh step. When shutting down, it now checks whether an OAuth token refresh is currently pending; if so, it extends the shutdown safety timer and waits for the refresh to finish before letting shutdown proceed.

Why

This prevents the process from being killed in the middle of refreshing its authentication token, which could otherwise leave the session in a broken authentication state.

See this entry in the whole of v2.1.265 →

Feedback