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(ui): handle missing tool call ID in assistant tool call component
Steven Enamakelc9e928700b96
diff --git a/app/src/features/conversations/components/AssistantUiToolCall.tsx b/app/src/features/conversations/components/AssistantUiToolCall.tsxindex 8636ac3d6d..0ee4e279c8 100644--- a/app/src/features/conversations/components/AssistantUiToolCall.tsx+++ b/app/src/features/conversations/components/AssistantUiToolCall.tsx@@ -118,7 +118,12 @@ export function AssistantUiToolCallCard({? t('conversations.tools.status.cancelled'): outcome === 'awaiting'? t('conversations.tools.status.awaiting')- : undefined;+ : running+ ? t('conversations.tools.status.running')+ : t('conversations.tools.status.done');+ // Running and done are carried by the spinner / check; they stay readable+ // to a screen reader. The states that need attention are spelled out.+ const statusVisible = outcome !== 'success';const searchBody =presentation.body === 'webSearch'@@ -164,13 +169,17 @@ export function AssistantUiToolCallCard({}meta={<>- {statusText ? (- <span- data-testid="tool-call-status"- className={outcome === 'awaiting' ? 'text-amber-600 dark:text-amber-400' : undefined}>- {statusText}- </span>- ) : null}+ <span+ data-testid="tool-call-status"+ className={+ !statusVisible || (running && outcome !== 'awaiting')+ ? 'sr-only'+ : outcome === 'awaiting'+ ? 'text-amber-600 dark:text-amber-400'+ : undefined+ }>+ {statusText}+ </span>{elapsedMs != null && !running ? (<span data-testid="tool-call-elapsed" className="tabular-nums">{formatElapsed(elapsedMs)}diff --git a/app/src/features/conversations/components/__tests__/ToolTimelineBlock.test.tsx b/app/src/features/conversations/components/__tests__/ToolTimelineBlock.test.tsxindex 4c68fa44cd..40d2e78022 100644--- a/app/src/features/conversations/components/__tests__/ToolTimelineBlock.test.tsx+++ b/app/src/features/conversations/components/__tests__/ToolTimelineBlock.test.tsx@@ -124,10 +124,10 @@ describe('SubagentActivityBlock', () => {expect(calls[0].textContent).toContain('Searched the web');expect(calls[0].textContent?.toLowerCase()).toContain('done');expect(calls[0].textContent).toContain('312ms');- expect(calls[1].textContent).toContain('Composio Execute');+ expect(calls[1].textContent).toContain('Running app action');expect(calls[1].textContent?.toLowerCase()).toContain('running');expect(calls[1].textContent).not.toContain('·t2');- expect(calls[2].textContent).toContain('Reading file');+ expect(calls[2].textContent).toContain('Read file');expect(calls[2].textContent?.toLowerCase()).toContain('failed');expect(calls[2].textContent).toContain('50ms');});@@ -160,7 +160,9 @@ describe('SubagentActivityBlock', () => {expect(screen.queryByText(/"content"/)).not.toBeInTheDocument();});- it('infers a descriptive search label for a degraded subagent tool name', () => {+ // A query argument alone no longer makes a call "Searched the web"; that+ // heuristic mislabelled memory, tool and email searches.+ it('labels a degraded subagent tool name honestly, keeping its query visible', () => {renderInStore(<SubagentActivityBlocksubagent={{@@ -179,7 +181,10 @@ describe('SubagentActivityBlock', () => {/>);- expect(screen.getByTestId('assistant-ui-tool-call')).toHaveTextContent('Searched the web');+ const call = screen.getByTestId('assistant-ui-tool-call');+ expect(call).toHaveTextContent('Used tool');+ expect(call).toHaveTextContent('world news');+ expect(call).not.toHaveTextContent('Searched the web');});it('labels cancelled / awaiting-user calls distinctly (not the green "Done" pill)', () => {@@ -204,7 +209,7 @@ describe('SubagentActivityBlock', () => {expect(calls[1].textContent?.toLowerCase()).not.toContain('done');});- it('prefers the server-supplied label + contextual detail for a child tool call', () => {+ it('names a connected-app action by its app, with the server detail beside the action', () => {renderInStore(<SubagentActivityBlocksubagent={{@@ -223,8 +228,8 @@ describe('SubagentActivityBlock', () => {/>);const row = screen.getByTestId('assistant-ui-tool-call');- expect(row.textContent).toContain('Reading messages');- expect(row.textContent).toContain('[email protected]');+ expect(row.textContent).toContain('Used Gmail');+ expect(row.textContent).toContain('Read messages · [email protected]');// Never the raw snake_case slug.expect(row.textContent).not.toContain('GMAIL_READ_MESSAGES');});diff --git a/app/src/features/conversations/tools/toolPresentation.ts b/app/src/features/conversations/tools/toolPresentation.tsindex c25f29405b..a44d3d1f78 100644--- a/app/src/features/conversations/tools/toolPresentation.ts+++ b/app/src/features/conversations/tools/toolPresentation.ts@@ -331,6 +331,9 @@ export function describeToolCall(input: DescribeToolCallInput): ToolCallPresenta// 6. Composio action slug.const composio = matchComposioActionSlug(baseName);if (composio) {+ // The action names what was done; the server detail (or the obvious+ // argument, e.g. a recipient) names what it was done to.+ const target = cleanDetail(serverDetail) ?? genericChip(args);return {baseName,icon: INTEGRATION_ICON,@@ -340,7 +343,7 @@ export function describeToolCall(input: DescribeToolCallInput): ToolCallPresentaphrase: 'useApp',params: { app: composio.name },integration: { slug: composio.slug, name: composio.name, known: composio.known },- chip: composio.action,+ chip: target ? truncateChip(`${composio.action} · ${target}`) : composio.action,source: 'integration',};}