Skip to content

Commit a6ce75d

Browse files
authored
Telemetry fix (RooCodeInc#4009)
1 parent 0a3d0e3 commit a6ce75d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/wicked-suns-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
Telemetry fix

src/core/controller/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,13 @@ export class Controller {
264264
}
265265
}
266266
})
267+
268+
// Initialize telemetry service with user's current setting
269+
this.getStateToPostToWebview().then((state) => {
270+
const { telemetrySetting } = state
271+
const isOptedIn = telemetrySetting !== "disabled"
272+
telemetryService.updateTelemetryState(isOptedIn)
273+
})
267274
break
268275
case "newTask":
269276
// Code that should run in response to the hello message command

0 commit comments

Comments
 (0)