fix(checkpoints): revert out-of-scope console removals

This commit is contained in:
hannesrudolph 2025-07-03 17:39:33 -06:00
parent f0aac234f8
commit a015bc9a45

View file

@ -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
})
}