MCPcopy
hub / github.com/anomalyco/opencode / refreshTimeout

Function refreshTimeout

packages/desktop/src/main/server.ts:99–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 }
98
99 const refreshTimeout = () => {
100 clearTimeout(timeout)
101 timeout = setTimeout(() => {
102 fail(new Error(`Sidecar did not become ready within ${SIDECAR_START_STALL_TIMEOUT}ms: ${sidecar}`))
103 }, SIDECAR_START_STALL_TIMEOUT)
104 }
105
106 const onMessage = (message: SidecarMessage) => {
107 if (message.type === "ready") {

Callers 1

spawnLocalServerFunction · 0.85

Calls 1

failFunction · 0.70

Tested by

no test coverage detected