{"version":"2.1.265","anchor":"process-exit-now-waits-for-in-flight-oauth-token-refresh","canonical_anchor":"process-exit-now-waits-for-in-flight-oauth-token-refresh","heading":"Process exit now waits for in-flight OAuth token refresh","tier":"notice","area":"Auth","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/process-exit-now-waits-for-in-flight-oauth-token-refresh","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### Process exit now waits for in-flight OAuth token refresh\n\nClaude Code now waits for an in-flight OAuth token refresh to finish before exiting\n\n**What**\n\nIf 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.\n\n**Why**\n\nThis avoids exiting mid-refresh, which could otherwise leave the saved credentials in an inconsistent state.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}