You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.335,
ImprovementsSection of the release
Unclear It is not clear what switches the extra grace check on, so it may not apply to every session.
What
Claude 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.
Previously, 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.
Why
This avoids connections dropping for no real reason after you close your laptop lid and open it again.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear what switches the extra grace check on, so it may not apply to every session.