mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
fix(checkpoints): revert out-of-scope console removals
This commit is contained in:
parent
f0aac234f8
commit
a015bc9a45
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue