* 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)
| 105 | * and replBridge. |
| 106 | */ |
| 107 | function pollSleepDetectionThresholdMs(backoff: BackoffConfig): number { |
| 108 | return backoff.connCapMs * 2 |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Returns the args that must precede CLI flags when spawning a child claude |