MCPcopy Create free account
hub / github.com/codeaashu/claude-code / pollSleepDetectionThresholdMs

Function pollSleepDetectionThresholdMs

src/bridge/bridgeMain.ts:107–109  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

105 * and replBridge.
106 */
107function 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

Callers 1

runBridgeLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected