MCPcopy Index your code
hub / github.com/codeaashu/claude-code / fetchOlderEvents

Function fetchOlderEvents

src/assistant/sessionHistory.ts:81–87  ·  view source on GitHub ↗
(
  ctx: HistoryAuthCtx,
  beforeId: string,
  limit = HISTORY_PAGE_SIZE,
)

Source from the content-addressed store, hash-verified

79
80/** Older page: events immediately before `beforeId` cursor. */
81export async function fetchOlderEvents(
82 ctx: HistoryAuthCtx,
83 beforeId: string,
84 limit = HISTORY_PAGE_SIZE,
85): Promise<HistoryPage | null> {
86 return fetchPage(ctx, { limit, before_id: beforeId }, 'fetchOlderEvents')
87}
88
89

Callers 1

useAssistantHistoryFunction · 0.85

Calls 1

fetchPageFunction · 0.85

Tested by

no test coverage detected