Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/core/Cline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,9 +1680,11 @@ export class Cline extends EventEmitter<ClineEvents> {
}

const recentlyModifiedFiles = this.fileContextTracker.getAndClearCheckpointPossibleFile()

if (recentlyModifiedFiles.length > 0) {
// TODO: we can track what file changes were made and only checkpoint those files, this will be save storage
this.checkpointSave()
// TODO: We can track what file changes were made and only
// checkpoint those files, this will be save storage.
await this.checkpointSave()
}

/*
Expand Down Expand Up @@ -2508,6 +2510,7 @@ export class Cline extends EventEmitter<ClineEvents> {
},
{ interval, timeout },
)

return service
} catch (err) {
return undefined
Expand Down Expand Up @@ -2580,6 +2583,7 @@ export class Cline extends EventEmitter<ClineEvents> {
this.providerRef
.deref()
?.log("[checkpointSave] checkpoints didn't initialize in time, disabling checkpoints for this task")

this.enableCheckpoints = false
return
}
Expand Down