MCPcopy Index your code
hub / github.com/anomalyco/opencode / touchMessage

Function touchMessage

packages/tui/src/context/sync.tsx:147–149  ·  view source on GitHub ↗
(sessionID: string, messageID: string)

Source from the content-addressed store, hash-verified

145 const syncingSessions = new Map<string, Promise<void>>()
146 const hydratingSessions = new Map<string, { messages: Set<string>; parts: Set<string> }>()
147 const touchMessage = (sessionID: string, messageID: string) => {
148 hydratingSessions.get(sessionID)?.messages.add(messageID)
149 }
150 const touchPart = (sessionID: string, partID: string) => {
151 hydratingSessions.get(sessionID)?.parts.add(partID)
152 }

Callers 1

sync.tsxFile · 0.85

Calls 2

addMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected