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

Function touch

packages/app/src/context/server-session.ts:440–443  ·  view source on GitHub ↗
(sessionID: string)

Source from the content-addressed store, hash-verified

438 ])
439
440 const touch = (sessionID: string) =>
441 evict(
442 pickSessionCacheEvictions({ seen, keep: sessionID, limit: SESSION_CACHE_LIMIT, preserve: protectedSessions() }),
443 )
444
445 const fetchMessages = async (sessionID: string, limit: number, before?: string, onAttempt?: () => void) => {
446 const response = await (options?.retry ?? retry)(() => {

Callers 7

syncFunction · 0.70
prefetchFunction · 0.70
applyFunction · 0.70
diffFunction · 0.70
todoFunction · 0.70
loadMoreFunction · 0.70
pinFunction · 0.70

Calls 3

protectedSessionsFunction · 0.85
evictFunction · 0.70

Tested by

no test coverage detected