Compare commits

...

4 Commits

Author SHA1 Message Date
Cline Evaluation 1bad8061de Merge remote-tracking branch 'origin/main' into pashpashpash/tracking-model-diff-failure 2025-05-07 22:42:57 -07:00
Cline Evaluation 3a579408d8 prettier 2025-05-06 14:23:04 -07:00
Cline Evaluation 0ad1e93e2f merge conflicts 2025-05-06 13:51:24 -07:00
pashpashpash 3309f8f817 tracking models in diff edit failures 2025-05-05 00:23:47 -07:00
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1916,7 +1916,7 @@ export class Task {
: "other_diff_error"
// Add telemetry for diff edit failure
telemetryService.captureDiffEditFailure(this.taskId, errorType)
telemetryService.captureDiffEditFailure(this.taskId, this.api.getModel().id, errorType)
pushToolResult(
formatResponse.toolError(
@@ -512,13 +512,14 @@ class PostHogClient {
* @param taskId Unique identifier for the task
* @param errorType Type of error that occurred (e.g., "search_not_found", "invalid_format")
*/
public captureDiffEditFailure(taskId: string, errorType?: string, collect: boolean = false) {
public captureDiffEditFailure(taskId: string, modelId: string, errorType?: string, collect: boolean = false) {
this.capture(
{
event: PostHogClient.EVENTS.TASK.DIFF_EDIT_FAILED,
properties: {
taskId,
errorType,
modelId,
},
},
collect,