Skip to content

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

fix(aui): handle missing context usage data gracefully

Steven Enamakel3cb9c06ccf34
diff --git a/app/src/features/conversations/aui/ContextUsage.tsx b/app/src/features/conversations/aui/ContextUsage.tsx
index 48a090eb6a..021ab38cd5 100644
--- a/app/src/features/conversations/aui/ContextUsage.tsx
+++ b/app/src/features/conversations/aui/ContextUsage.tsx
@@ -11,6 +11,13 @@
* so it is fetched only when the popover opens, and an older core without the
* method leaves the popover in an error state rather than breaking the
* composer.
+ *
+ * `CostFooter` restores the dollar cost / per-sub-agent spend the bespoke
+ * pre-vendoring widget used to show — `chatRuntime.usageByThread`'s
+ * `costUsd`/`subAgents`, accumulated from `chat_done.usage` (and
+ * `subagent_completed`'s late delta). The vendored `ContextBreakdown` element
+ * has no cost field, so this renders underneath it as its own small card
+ * rather than being folded into that element.
*/
import {
ContextBreakdown,