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

Function update

packages/session-ui/src/components/session-retry.tsx:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 on(retry, (current) => {
17 if (!current) return
18 const update = () => {
19 const next = retry()?.next
20 if (!next) return
21 setSeconds(Math.round((next - Date.now()) / 1000))
22 }
23 update()
24 const timer = setInterval(update, 1000)
25 onCleanup(() => clearInterval(timer))

Callers 1

SessionRetryFunction · 0.70

Calls 1

retryFunction · 0.50

Tested by

no test coverage detected