fix(coding-agent): expose rpc context usage closes #2550

This commit is contained in:
Mario Zechner
2026-03-24 03:08:51 +01:00
parent 9a0be024a6
commit 835296b1d7
4 changed files with 160 additions and 2 deletions

View File

@@ -200,6 +200,7 @@ export interface SessionStats {
total: number;
};
cost: number;
contextUsage?: ContextUsage;
}
interface ToolDefinitionEntry {
@@ -3029,6 +3030,7 @@ export class AgentSession {
total: totalInput + totalOutput + totalCacheRead + totalCacheWrite,
},
cost: totalCost,
contextUsage: this.getContextUsage(),
};
}