MCPcopy Create free account
hub / github.com/MigoXLab/coderio / clearCheckpoint

Function clearCheckpoint

src/utils/checkpoint.ts:25–33  ·  view source on GitHub ↗

* Clear checkpoint for the given thread_id

(checkpointer: SqliteSaver, threadId: string)

Source from the content-addressed store, hash-verified

23 * Clear checkpoint for the given thread_id
24 */
25async function clearCheckpoint(checkpointer: SqliteSaver, threadId: string): Promise<void> {
26 try {
27 // Delete all checkpoints for this thread_id
28 await checkpointer.deleteThread(threadId);
29 } catch (error) {
30 const errorMessage = error instanceof Error ? error.message : String(error);
31 logger.printWarnLog(`Failed to clear checkpoint: ${errorMessage}`);
32 }
33}
34
35/**
36 * Check and prompt user for checkpoint decision

Callers 1

clearThreadCheckpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected