MCPcopy Create free account
hub / github.com/anomalyco/opencode / recordStreamFailure

Function recordStreamFailure

packages/opencode/src/plugin/openai/ws-pool.ts:163–167  ·  view source on GitHub ↗
(entry: PoolEntry)

Source from the content-addressed store, hash-verified

161 }
162
163 function recordStreamFailure(entry: PoolEntry) {
164 entry.streamFailures++
165 // Codex counts retries after the initial failed WebSocket attempt.
166 if (entry.streamFailures > streamRetries) entry.fallback = true
167 }
168
169 function prune() {
170 const now = Date.now()

Callers 1

websocketFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected