{"version":"2.1.335","anchor":"bridge-keepalive-grace-after-sleepstall","canonical_anchor":"bridge-keepalive-grace-after-sleepstall","heading":"Remote connections can survive a laptop sleep instead of dropping straight away","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/bridge-keepalive-grace-after-sleepstall","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Remote connections can survive a laptop sleep instead of dropping straight away\n\nAfter a long pause such as sleep, Claude Code can wait longer for a remote connection to answer before closing it, and skips needless reconnects\n\n**Unclear.** It is not clear what switches the extra grace check on, so it may not apply to every session.\n\n**What**\n\nClaude Code keeps some connections to remote services open using a WebSocket, a long-lived network connection. It checks the connection is still alive by sending a small signal and waiting for a reply within a time limit.\n\nPreviously, the connection was closed whenever that reply did not arrive in time. Claude Code now notices when its own timer has been paused for a long stretch, for example while the computer was asleep or stalled. When that happens, and an extra grace check is switched on, it gives the reply more time instead of closing the connection. It also skips a planned reconnect if the connection is already back up.\n\n**Why**\n\nThis avoids connections dropping for no real reason after you close your laptop lid and open it again.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}