Skip to content

Commit 9126423

Browse files
committed
Await checkpoint saves (except the initial)
1 parent e7a57ea commit 9126423

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/core/Cline.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,9 +1680,11 @@ export class Cline extends EventEmitter<ClineEvents> {
16801680
}
16811681

16821682
const recentlyModifiedFiles = this.fileContextTracker.getAndClearCheckpointPossibleFile()
1683+
16831684
if (recentlyModifiedFiles.length > 0) {
1684-
// TODO: we can track what file changes were made and only checkpoint those files, this will be save storage
1685-
this.checkpointSave()
1685+
// TODO: We can track what file changes were made and only
1686+
// checkpoint those files, this will be save storage.
1687+
await this.checkpointSave()
16861688
}
16871689

16881690
/*
@@ -2508,6 +2510,7 @@ export class Cline extends EventEmitter<ClineEvents> {
25082510
},
25092511
{ interval, timeout },
25102512
)
2513+
25112514
return service
25122515
} catch (err) {
25132516
return undefined
@@ -2580,6 +2583,7 @@ export class Cline extends EventEmitter<ClineEvents> {
25802583
this.providerRef
25812584
.deref()
25822585
?.log("[checkpointSave] checkpoints didn't initialize in time, disabling checkpoints for this task")
2586+
25832587
this.enableCheckpoints = false
25842588
return
25852589
}

0 commit comments

Comments
 (0)