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

Function refresh

packages/tui/src/context/sync.tsx:574–577  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

572 return sessionListQuery()
573 },
574 async refresh() {
575 const list = await listSessions()
576 setStore("session", reconcile(list))
577 },
578 status(sessionID: string) {
579 const session = result.session.get(sessionID)
580 if (!session) return "idle"

Callers

nothing calls this directly

Calls 3

listSessionsFunction · 0.85
setStoreFunction · 0.85
reconcileFunction · 0.50

Tested by

no test coverage detected