{"version":"2.1.331","anchor":"remote-sse-401-handling-counts-failed-refreshes","canonical_anchor":"remote-sse-401-handling-counts-failed-refreshes","heading":"Remote sessions retry login refreshes before giving up on a dropped connection","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/remote-sse-401-handling-counts-failed-refreshes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Remote sessions retry login refreshes before giving up on a dropped connection\n\nAfter an authorization error on a remote session's live connection, Claude Code now counts failed login refreshes instead of quitting at the first one\n\n**What**\n\nA remote session keeps a live connection open to receive updates from the server. When the server answers that connection with a 401, meaning it does not accept the login, Claude Code tries to refresh the credentials. It now keeps count of refreshes that fail. It closes the connection as exhausted only once failed refreshes reach the limit (one, when a credential was sent) and its reconnection attempts are used up. Before, it closed on the first refresh that did not succeed.\n\n**Why**\n\nRemote sessions cope better with brief login hiccups instead of dropping the connection straight away.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}