mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
fix: include line totals in aggregatedCosts message
Align extension->webview message contract with extended AggregatedCosts/SubtaskDetail (added/removed + totals), fixing check-types and enabling line deltas in UI.
This commit is contained in:
parent
235cffad3b
commit
ecadf2c6b5
2 changed files with 9 additions and 3 deletions
|
|
@ -188,11 +188,19 @@ export interface ExtensionMessage {
|
|||
totalCost: number
|
||||
ownCost: number
|
||||
childrenCost: number
|
||||
ownAdded?: number
|
||||
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
|
||||
}[]
|
||||
|
|
|
|||
|
|
@ -1711,9 +1711,7 @@ export class ClineProvider
|
|||
return {
|
||||
historyItem,
|
||||
aggregatedCosts: {
|
||||
totalCost: aggregatedCosts.totalCost,
|
||||
ownCost: aggregatedCosts.ownCost,
|
||||
childrenCost: aggregatedCosts.childrenCost,
|
||||
...aggregatedCosts,
|
||||
childDetails,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue