Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/services/chatService.ts

Steven Enamakel114dcf4e266c
diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.ts
index 7a58331138..fb8672887f 100644
--- a/app/src/services/chatService.ts
+++ b/app/src/services/chatService.ts
@@ -95,6 +95,12 @@ export interface TurnUsageWire {
cached_input_tokens: number;
cost_usd: number;
context_window: number;
+ /**
+ * Tokens the parent's context held after the turn's final model call: the
+ * context gauge's numerator. The totals above sum every call of the turn.
+ * Absent from an older core.
+ */
+ context_tokens?: number;
subagents?: SubagentUsageWire[];
}