MCPcopy Create free account
hub / github.com/cortexkit/magic-context / deleteSession

Function deleteSession

packages/plugin/scripts/longmemeval/runner.ts:327–339  ·  view source on GitHub ↗
(
    client: OpencodeClient,
    config: RunnerConfig,
    sessionId: string,
)

Source from the content-addressed store, hash-verified

325}
326
327async function deleteSession(
328 client: OpencodeClient,
329 config: RunnerConfig,
330 sessionId: string,
331): Promise<void> {
332 await withRetry(config, `session.delete:${sessionId}`, (_attempt, signal) =>
333 client.session.delete({
334 path: { id: sessionId },
335 query: { directory: config.projectDirectory },
336 signal,
337 }),
338 );
339}
340
341async function fetchMessages(
342 client: OpencodeClient,

Callers 1

cleanupSessionsFunction · 0.85

Calls 2

withRetryFunction · 0.85
deleteMethod · 0.80

Tested by

no test coverage detected