|
@@ -3798,6 +3798,8 @@ export class Cline {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ telemetryService.captureCheckpointDiffed(this.taskId)
|
|
|
|
|
+
|
|
|
if (!previousCommitHash && mode === "checkpoint") {
|
|
if (!previousCommitHash && mode === "checkpoint") {
|
|
|
const previousCheckpoint = this.clineMessages
|
|
const previousCheckpoint = this.clineMessages
|
|
|
.filter(({ say }) => say === "checkpoint_saved")
|
|
.filter(({ say }) => say === "checkpoint_saved")
|
|
@@ -3849,6 +3851,8 @@ export class Cline {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ telemetryService.captureCheckpointCreated(this.taskId)
|
|
|
|
|
+
|
|
|
// Start the checkpoint process in the background.
|
|
// Start the checkpoint process in the background.
|
|
|
service.saveCheckpoint(`Task: ${this.taskId}, Time: ${Date.now()}`).catch((err) => {
|
|
service.saveCheckpoint(`Task: ${this.taskId}, Time: ${Date.now()}`).catch((err) => {
|
|
|
console.error("[Cline#checkpointSave] caught unexpected error, disabling checkpoints", err)
|
|
console.error("[Cline#checkpointSave] caught unexpected error, disabling checkpoints", err)
|
|
@@ -3880,6 +3884,8 @@ export class Cline {
|
|
|
try {
|
|
try {
|
|
|
await service.restoreCheckpoint(commitHash)
|
|
await service.restoreCheckpoint(commitHash)
|
|
|
|
|
|
|
|
|
|
+ telemetryService.captureCheckpointRestored(this.taskId)
|
|
|
|
|
+
|
|
|
await this.providerRef.deref()?.postMessageToWebview({ type: "currentCheckpointUpdated", text: commitHash })
|
|
await this.providerRef.deref()?.postMessageToWebview({ type: "currentCheckpointUpdated", text: commitHash })
|
|
|
|
|
|
|
|
if (mode === "restore") {
|
|
if (mode === "restore") {
|