{"version":"2.1.336","anchor":"sessionend-shutdown-can-stay-for-a-held-oauth-refresh","canonical_anchor":"sessionend-shutdown-can-stay-for-a-held-oauth-refresh","heading":"Claude Code can wait for a login token refresh before it exits","tier":"notice","area":"Auth","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/sessionend-shutdown-can-stay-for-a-held-oauth-refresh","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Claude Code can wait for a login token refresh before it exits\n\nWhen a session ends, Claude Code can now wait up to a deadline for an in-progress login token refresh before forcing its exit\n\n**What**\n\nWhen a session ends, Claude Code shuts down and then forces its process to exit. A session is one run of Claude Code from start to finish. Under some conditions it now waits for a login token refresh that is still in progress before forcing the exit. A token refresh renews the credential that keeps you signed in. The wait has a deadline, and Claude Code exits once that passes. It does not apply on Windows. Before, Claude Code forced the exit straight away.\n\n**Why**\n\nThis can stop a token refresh being cut off halfway when Claude Code closes. Exiting may take a little longer when a refresh is underway.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}