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
fix(conversations): label context cost and stabilize thread list memo
Steven Enamakelc06a1da910b7
diff --git a/app/src/features/conversations/aui/ContextUsage.tsx b/app/src/features/conversations/aui/ContextUsage.tsxindex 118da4ae74..6ab0b4890a 100644--- a/app/src/features/conversations/aui/ContextUsage.tsx+++ b/app/src/features/conversations/aui/ContextUsage.tsx@@ -202,7 +202,7 @@ export function ContextUsage({: 0;const stats = [{ label: t('token.popCacheHit'), value: `${cacheHit}%` },- { label: t('token.costTitle'), value: formatCost(usage.costUsd, usage.costSource) },+ { label: `${t('token.costTitle')}:`, value: formatCost(usage.costUsd, usage.costSource) },...Object.values(usage.subAgents).map(sub => ({label: t('conversations.composer.context.subagentCost').replace('{agent}', sub.agentId),value: `${(sub.inputTokens + sub.outputTokens).toLocaleString('en-US')} · ${formatCost(diff --git a/app/src/features/conversations/aui/PinnedTodoCard.test.tsx b/app/src/features/conversations/aui/PinnedTodoCard.test.tsxindex 0349b62536..6decfd3507 100644--- a/app/src/features/conversations/aui/PinnedTodoCard.test.tsx+++ b/app/src/features/conversations/aui/PinnedTodoCard.test.tsx@@ -38,6 +38,18 @@ describe('PinnedTodoCard', () => {expect(container.querySelector('[data-slot="todo-progress-card"]')).toBeNull();});+ it('keeps pending and failed steps from appearing to run when progress is not sequential', () => {+ const { container } = render(<PinnedTodoCard threadId="t1" items={[+ { id: 'pending', text: 'Waiting step', status: 'pending' },+ { id: 'done', text: 'Finished step', status: 'done' },+ { id: 'failed', text: 'Failed step', status: 'failed', reason: 'Retry needed' },+ ]} />);+ fireEvent.click(toggle());+ expect(screen.getByText('Failed step — Retry needed')).toBeVisible();+ expect(container.querySelector('.animate-spin')).toBeNull();+ expect(screen.getAllByTestId('todo-item').map(item => item.getAttribute('data-status'))).toEqual(['pending', 'done', 'failed']);+ });+it('opens while a step is active and stays collapsed otherwise', async () => {const { rerender } = render(<PinnedTodoCard threadId="t1" items={active} />);await waitFor(() => expect(toggle()).toHaveAttribute('aria-expanded', 'true'));diff --git a/app/src/features/conversations/threadList/ThreadList.tsx b/app/src/features/conversations/threadList/ThreadList.tsxindex ed3fcecc08..a96eb9d062 100644--- a/app/src/features/conversations/threadList/ThreadList.tsx+++ b/app/src/features/conversations/threadList/ThreadList.tsx@@ -96,15 +96,16 @@ function ThreadRow() {export function ThreadList(props: ThreadListProps) {const { t } = useT();const [search, setSearch] = useState('');+ const { threads, resolveTitle } = props;const adapterThreads = useMemo(() =>- props.threads.map(thread => ({+ threads.map(thread => ({id: thread.id,remoteId: thread.id,status: 'regular' as const,- title: props.resolveTitle(thread.id),+ title: resolveTitle(thread.id),})),- [props.threads, props.resolveTitle]+ [threads, resolveTitle]);const runtime = useExternalStoreRuntime({messages: EMPTY_MESSAGES,