You'll notice
Claude Code now waits for an in-flight OAuth token refresh to finish before exiting
What
If Claude Code is in the middle of refreshing its OAuth login token (the credential used to authenticate with Anthropic) when the process tries to exit, it now waits for that refresh to finish first, up to a timeout, instead of exiting immediately. If the refresh doesn't finish in time, Claude Code logs a message and records a telemetry event, then exits anyway.
Why
This avoids exiting mid-refresh, which could otherwise leave the saved credentials in an inconsistent state.