Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/types/src/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export type AppProperties = z.infer<typeof appPropertiesSchema>

export const taskPropertiesSchema = z.object({
taskId: z.string().optional(),
parentTaskId: z.string().optional(),
Comment on lines 114 to +115
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Schema validation quality. These IDs are generated UUIDs elsewhere; enforcing z.string().uuid() here will help catch malformed values and improve downstream analytics consistency.

Suggested change
taskId: z.string().optional(),
parentTaskId: z.string().optional(),
taskId: z.string().uuid().optional(),
parentTaskId: z.string().uuid().optional(),

apiProvider: z.enum(providerNames).optional(),
modelId: z.string().optional(),
diffStrategy: z.string().optional(),
Expand Down
1 change: 1 addition & 0 deletions src/core/webview/ClineProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2756,6 +2756,7 @@ export class ClineProvider
language,
mode,
taskId: task?.taskId,
parentTaskId: task?.parentTask?.taskId,
apiProvider: apiConfiguration?.apiProvider,
modelId: task?.api?.getModel().id,
diffStrategy: task?.diffStrategy?.getName(),
Expand Down
Loading