mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-08 22:21:23 +00:00
Add consecutive mistake count to diff error telemetry (#2687)
This commit is contained in:
parent
1d029ed0cb
commit
9d761e23e2
3 changed files with 8 additions and 2 deletions
5
.changeset/fair-donuts-wash.md
Normal file
5
.changeset/fair-donuts-wash.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"roo-cline": patch
|
||||
---
|
||||
|
||||
Add consecutive mistake count to diff error telemetry
|
||||
|
|
@ -90,7 +90,7 @@ export async function applyDiffTool(
|
|||
cline.consecutiveMistakeCountForApplyDiff.set(relPath, currentCount)
|
||||
let formattedError = ""
|
||||
|
||||
telemetryService.captureDiffApplicationError(cline.taskId)
|
||||
telemetryService.captureDiffApplicationError(cline.taskId, currentCount)
|
||||
|
||||
if (diffResult.failParts && diffResult.failParts.length > 0) {
|
||||
for (const failPart of diffResult.failParts) {
|
||||
|
|
|
|||
|
|
@ -290,9 +290,10 @@ class TelemetryService {
|
|||
})
|
||||
}
|
||||
|
||||
public captureDiffApplicationError(taskId: string): void {
|
||||
public captureDiffApplicationError(taskId: string, consecutiveMistakeCount: number): void {
|
||||
this.captureEvent(PostHogClient.EVENTS.ERRORS.DIFF_APPLICATION_ERROR, {
|
||||
taskId,
|
||||
consecutiveMistakeCount,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue