Skip to content

Commit 28b642d

Browse files
authored
Add the parent task ID in telemetry (#8532)
1 parent 85b0e8a commit 28b642d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/types/src/telemetry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export type AppProperties = z.infer<typeof appPropertiesSchema>
112112

113113
export const taskPropertiesSchema = z.object({
114114
taskId: z.string().optional(),
115+
parentTaskId: z.string().optional(),
115116
apiProvider: z.enum(providerNames).optional(),
116117
modelId: z.string().optional(),
117118
diffStrategy: z.string().optional(),

src/core/webview/ClineProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,6 +2756,7 @@ export class ClineProvider
27562756
language,
27572757
mode,
27582758
taskId: task?.taskId,
2759+
parentTaskId: task?.parentTask?.taskId,
27592760
apiProvider: apiConfiguration?.apiProvider,
27602761
modelId: task?.api?.getModel().id,
27612762
diffStrategy: task?.diffStrategy?.getName(),

0 commit comments

Comments
 (0)