mirror of
https://github.com/cline/cline.git
synced 2026-10-29 17:42:34 +08:00
tracking models in diff edit failures (#3297)
* tracking models in diff edit failures * prettier --------- Co-authored-by: Cline Evaluation <cline@example.com>
This commit is contained in:
co-authored by
Cline Evaluation
parent
e1a0b244de
commit
cb0de8f17e
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user