added telemetry for condense toggle in menu (#5718)
This commit is contained in:
1 parent
d594368f05
commit
24f10eeee5
2 files changed
+22
No files matched your search
@@ -384,6 +384,9 @@ export class Task {
|
||||
}
|
||||
|
||||
public updateUseAutoCondense(useAutoCondense: boolean): void {
|
||||
// Track the setting change with current task and model context
|
||||
telemetryService.captureAutoCondenseToggle(this.ulid, useAutoCondense, this.api.getModel().id)
|
||||
|
||||
this.useAutoCondense = useAutoCondense
|
||||
}
|
||||
|
||||
|
||||
@@ -104,6 +104,8 @@ export class TelemetryService {
|
||||
SLASH_COMMAND_USED: "task.slash_command_used",
|
||||
// Tracks when individual Cline rules are toggled on/off
|
||||
RULE_TOGGLED: "task.rule_toggled",
|
||||
// Tracks when auto condense setting is toggled on/off
|
||||
AUTO_CONDENSE_TOGGLED: "task.auto_condense_toggled",
|
||||
},
|
||||
// UI interaction events for tracking user engagement
|
||||
UI: {
|
||||
@@ -832,6 +834,23 @@ export class TelemetryService {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Records when auto condense is enabled/disabled by the user
|
||||
* @param ulid Unique identifier for the task
|
||||
* @param enabled Whether auto condense was enabled (true) or disabled (false)
|
||||
* @param modelId The model ID being used when the toggle occurred
|
||||
*/
|
||||
public captureAutoCondenseToggle(ulid: string, enabled: boolean, modelId: string) {
|
||||
this.capture({
|
||||
event: TelemetryService.EVENTS.TASK.AUTO_CONDENSE_TOGGLED,
|
||||
properties: {
|
||||
ulid,
|
||||
enabled,
|
||||
modelId,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Records when the rules menu button is clicked to open the rules/workflows modal
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user