mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-10 03:28:03 +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
|
totalCost: number
|
||||||
ownCost: number
|
ownCost: number
|
||||||
childrenCost: number
|
childrenCost: number
|
||||||
|
ownAdded?: number
|
||||||
|
ownRemoved?: number
|
||||||
|
childrenAdded?: number
|
||||||
|
childrenRemoved?: number
|
||||||
|
totalAdded?: number
|
||||||
|
totalRemoved?: number
|
||||||
childDetails?: {
|
childDetails?: {
|
||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
tokens: number
|
tokens: number
|
||||||
cost: number
|
cost: number
|
||||||
|
added: number
|
||||||
|
removed: number
|
||||||
status: "active" | "completed" | "delegated"
|
status: "active" | "completed" | "delegated"
|
||||||
hasNestedChildren: boolean
|
hasNestedChildren: boolean
|
||||||
}[]
|
}[]
|
||||||
|
|
|
||||||
|
|
@ -1711,9 +1711,7 @@ export class ClineProvider
|
||||||
return {
|
return {
|
||||||
historyItem,
|
historyItem,
|
||||||
aggregatedCosts: {
|
aggregatedCosts: {
|
||||||
totalCost: aggregatedCosts.totalCost,
|
...aggregatedCosts,
|
||||||
ownCost: aggregatedCosts.ownCost,
|
|
||||||
childrenCost: aggregatedCosts.childrenCost,
|
|
||||||
childDetails,
|
childDetails,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue