* Returns the threshold for detecting system sleep/wake in the poll loop. * Must exceed the max backoff cap — otherwise normal backoff delays trigger * false sleep detection (resetting the error budget indefinitely). Using * 2× the connection backoff cap, matching the pattern in WebSocketTranspor
(backoff: BackoffConfig)
| 111 | * and replBridge. |
| 112 | */ |
| 113 | function pollSleepDetectionThresholdMs(backoff: BackoffConfig): number { |
| 114 | return backoff.connCapMs * 2 |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Returns the args that must precede CLI flags when spawning a child CLI |