{"version":"2.1.186","anchor":"stream-suspend-detection-and-recovery","canonical_anchor":"stream-suspend-detection-and-recovery","heading":"Stream Suspend Detection and Recovery","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.186\/e\/stream-suspend-detection-and-recovery","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.186","markdown":"### Stream Suspend Detection and Recovery\n\nThe streaming layer now detects when the system was suspended (sleep\/hibernate) mid-stream and handles it gracefully instead of silently hanging.\n\n**Details**\n\n- A new `StreamSuspended` \/ `StreamSuspendedError` error code is emitted when the watchdog determines a gap was caused by system suspend rather than a genuine timeout.\n- The stream watchdog detects suspend events and aborts the current attempt to trigger a fresh reconnect.\n- Retry categorization now includes `\"stream_suspended\"` as a distinct reason, separate from `\"watchdog\"` and `\"stale_connection\"`.\n\n**Evidence**\n\nNew error type and retry reason (search for `\"Stream watchdog detected system suspend; aborting to retry on a fresh connection\"` and `\"StreamSuspended\"`)"}