From a015bc9a45ad9b91215c62076ab4f45879748724 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Thu, 3 Jul 2025 17:39:33 -0600 Subject: [PATCH] fix(checkpoints): revert out-of-scope console removals --- src/core/checkpoints/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/checkpoints/index.ts b/src/core/checkpoints/index.ts index b6106feb73..dcbe796eb7 100644 --- a/src/core/checkpoints/index.ts +++ b/src/core/checkpoints/index.ts @@ -24,6 +24,7 @@ export function getCheckpointService(cline: Task) { } if (cline.checkpointServiceInitializing) { + console.log("[Task#getCheckpointService] checkpoint service is still initializing") return undefined } @@ -136,6 +137,7 @@ async function getInitializedCheckpointService( try { await pWaitFor( () => { + console.log("[Task#getCheckpointService] waiting for service to initialize") return service.isInitialized }, { interval, timeout }, @@ -165,6 +167,7 @@ export async function checkpointSave(cline: Task, force = false) { // Start the checkpoint process in the background. return service.saveCheckpoint(`Task: ${cline.taskId}, Time: ${Date.now()}`, { allowEmpty: force }).catch((err) => { + console.error("[Task#checkpointSave] caught unexpected error, disabling checkpoints", err) cline.enableCheckpoints = false }) }