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

Function refresh

packages/tui/src/context/data.tsx:421–424  ·  view source on GitHub ↗
(sessionID: string)

Source from the content-addressed store, hash-verified

419 return store.session.info[sessionID]
420 },
421 async refresh(sessionID: string) {
422 const result = await sdk.client.v2.session.get({ sessionID }, { throwOnError: true })
423 setStore("session", "info", sessionID, result.data.data)
424 },
425 message: {
426 list(sessionID: string) {
427 return store.session.message[sessionID]

Callers

nothing calls this directly

Calls 6

setStoreFunction · 0.85
locationQueryFunction · 0.85
locationKeyFunction · 0.85
getMethod · 0.65
listMethod · 0.65
messagesMethod · 0.45

Tested by

no test coverage detected