-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: per-subtask cost breakdown display #10765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
774a8f9
e18382d
6b3ec95
4c9dd28
0a245c4
25848e6
5bead50
188a1c6
788a21a
3445ca1
235cffa
ecadf2c
13e2790
3900b3c
4be5688
249737d
e8bcb8c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,12 @@ export const todoItemSchema = z.object({ | |
| id: z.string(), | ||
| content: z.string(), | ||
| status: todoStatusSchema, | ||
| // Optional fields for subtask tracking | ||
| subtaskId: z.string().optional(), // ID of the linked subtask (child task) for direct cost/token attribution | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added |
||
| tokens: z.number().optional(), // Total tokens (in + out) for linked subtask | ||
| cost: z.number().optional(), // Total cost for linked subtask | ||
| added: z.number().optional(), | ||
| removed: z.number().optional(), | ||
| }) | ||
|
|
||
| export type TodoItem = z.infer<typeof todoItemSchema> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -188,6 +188,22 @@ export interface ExtensionMessage { | |
| totalCost: number | ||
| ownCost: number | ||
| childrenCost: number | ||
| ownAdded?: number | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the meta data structure |
||
| ownRemoved?: number | ||
| childrenAdded?: number | ||
| childrenRemoved?: number | ||
| totalAdded?: number | ||
| totalRemoved?: number | ||
| childDetails?: { | ||
| id: string | ||
| name: string | ||
| tokens: number | ||
| cost: number | ||
| added: number | ||
| removed: number | ||
| status: "active" | "completed" | "delegated" | ||
| hasNestedChildren: boolean | ||
| }[] | ||
| } | ||
| historyItem?: HistoryItem | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This handles automatic, system-generated todo list updates for subtask cost tracking.