The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(conversations): show context usage in chat runtime
Steven Enamakel753aae8a7906
diff --git a/app/src/features/conversations/aui/ContextUsage.tsx b/app/src/features/conversations/aui/ContextUsage.tsxindex a7f2b85ebe..bd7578505b 100644--- a/app/src/features/conversations/aui/ContextUsage.tsx+++ b/app/src/features/conversations/aui/ContextUsage.tsx@@ -36,11 +36,11 @@ import debug from 'debug';import { useCallback, useMemo, useRef, useState } from 'react';import { useT } from '../../../lib/i18n/I18nContext';-import type { CostSource } from '../../../services/chatService';import {type ContextBreakdown as ContextBreakdownData,getContextBreakdown,} from '../../../services/api/agentContextApi';+import type { CostSource } from '../../../services/chatService';import { emptySessionTokenUsage, type SessionTokenUsage } from '../../../store/chatRuntimeSlice';import { useAppSelector } from '../../../store/hooks';diff --git a/app/src/providers/ChatRuntimeProvider.tsx b/app/src/providers/ChatRuntimeProvider.tsxindex 565152a679..b53ffd6b7c 100644--- a/app/src/providers/ChatRuntimeProvider.tsx+++ b/app/src/providers/ChatRuntimeProvider.tsx@@ -1044,8 +1044,7 @@ const ChatRuntimeProvider = ({ children }: { children: React.ReactNode }) => {agentId: event.tool_name ?? 'subagent',inputTokens: childInput ?? 0,outputTokens: childOutput ?? 0,- costUsd:- event.subagent?.cost_usd === undefined ? 0 : event.subagent.cost_usd,+ costUsd: event.subagent?.cost_usd === undefined ? 0 : event.subagent.cost_usd,},],})