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

Function loadMore

packages/app/src/context/server-session.ts:1081–1085  ·  view source on GitHub ↗
(sessionID: string, count = historyMessagePageSize)

Source from the content-addressed store, hash-verified

1079 !!meta.cursor[sessionID],
1080 loading: (sessionID: string) => meta.loading[sessionID] ?? false,
1081 async loadMore(sessionID: string, count = historyMessagePageSize) {
1082 touch(sessionID)
1083 if (meta.loading[sessionID] || meta.complete[sessionID] || !meta.cursor[sessionID]) return
1084 await loadMessages(sessionID, count, meta.cursor[sessionID], "prepend")
1085 },
1086 },
1087 evict(sessionID: string) {
1088 if (protectedSessions().has(sessionID)) return

Callers

nothing calls this directly

Calls 2

loadMessagesFunction · 0.85
touchFunction · 0.70

Tested by

no test coverage detected