Skip to content

Commit a015bc9

Browse files
committed
fix(checkpoints): revert out-of-scope console removals
1 parent f0aac23 commit a015bc9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/checkpoints/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function getCheckpointService(cline: Task) {
2424
}
2525

2626
if (cline.checkpointServiceInitializing) {
27+
console.log("[Task#getCheckpointService] checkpoint service is still initializing")
2728
return undefined
2829
}
2930

@@ -136,6 +137,7 @@ async function getInitializedCheckpointService(
136137
try {
137138
await pWaitFor(
138139
() => {
140+
console.log("[Task#getCheckpointService] waiting for service to initialize")
139141
return service.isInitialized
140142
},
141143
{ interval, timeout },
@@ -165,6 +167,7 @@ export async function checkpointSave(cline: Task, force = false) {
165167

166168
// Start the checkpoint process in the background.
167169
return service.saveCheckpoint(`Task: ${cline.taskId}, Time: ${Date.now()}`, { allowEmpty: force }).catch((err) => {
170+
console.error("[Task#checkpointSave] caught unexpected error, disabling checkpoints", err)
168171
cline.enableCheckpoints = false
169172
})
170173
}

0 commit comments

Comments
 (0)