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(chat): categorize the canonical web-search name; instrument the turn footer
M3gA-Mindb3eef10fc060
diff --git a/app/src/features/conversations/components/aui/TurnFooter.tsx b/app/src/features/conversations/components/aui/TurnFooter.tsxindex b1fd02acf5..5473d5bafe 100644--- a/app/src/features/conversations/components/aui/TurnFooter.tsx+++ b/app/src/features/conversations/components/aui/TurnFooter.tsx@@ -71,6 +71,7 @@ export function TurnFooter() {<buttontype="button"data-testid="turn-process-footer"+ data-analytics-id="chat-turn-process-open"title={t('conversations.agentTaskInsights.viewProcessSource')}onClick={() => host.open(trail)}className="text-content-muted hover:text-content-secondary -ms-1 rounded px-1 text-xs transition-colors">diff --git a/app/src/providers/__tests__/assistantUiMessages.test.ts b/app/src/providers/__tests__/assistantUiMessages.test.tsindex c6aa781f3f..5c6d1438b1 100644--- a/app/src/providers/__tests__/assistantUiMessages.test.ts+++ b/app/src/providers/__tests__/assistantUiMessages.test.ts@@ -263,14 +263,18 @@ describe('buildRuntimeMessages', () => {expect(projected).toHaveLength(2);expect(projected[1]).toMatchObject({ id: 'final', role: 'assistant' });- expect(projected[1]?.content).toEqual([- expect.objectContaining({- type: 'tool-call',- toolCallId: 'call-search',- toolName: 'web_search_tool',- }),- { type: 'text', text: finalText },- ]);+ // One bubble, carrying the final text once — the intro segment is a prefix+ // of it and must not render twice.+ expect(projected[1]?.content).toEqual([{ type: 'text', text: finalText }]);+ // The trail still belongs to the coalesced bubble; it is just no longer+ // painted inline. The timeline row is named `tool` and is renamed to+ // `web_search_tool` from the envelope BEFORE the visibility filter runs, so+ // a recovered name decides visibility exactly as a declared one does — and+ // a search is read-only, so it moves to the rail behind the footer.+ expect(+ (projected[1]?.metadata as { custom?: { processTrail?: unknown } } | undefined)?.custom+ ?.processTrail+ ).toMatchObject({ steps: 1, tools: 1 });});it('does not coalesce adjacent assistant turns with different request ids', () => {@@ -508,11 +512,17 @@ describe('main-surface tool visibility', () => {// Reading, listing and searching are process. The row is not lost — it is// still in the timeline the turn footer opens — it just does not stack// above the answer.+ //+ // `web_search_tool` is the name a real search row carries: `web_search` is+ // the settings-family id the core expands from (`tools/user_filter.rs:79-80`),+ // and it is the canonical name — not the alias — that a live turn produces.+ // Both are asserted so neither can regress.expect(visibleIds([tool({ id: 'r1', name: 'file_read', seq: 0, status: 'success' }),tool({ id: 'r2', name: 'grep', seq: 1, status: 'success' }),- tool({ id: 'r3', name: 'web_search', seq: 2, status: 'success' }),+ tool({ id: 'r3', name: 'web_search_tool', seq: 2, status: 'success' }),+ tool({ id: 'r4', name: 'web_search', seq: 3, status: 'success' }),])).toEqual([]);});diff --git a/app/src/utils/__tests__/toolTimelineFormatting.test.ts b/app/src/utils/__tests__/toolTimelineFormatting.test.tsindex 7b5e3592ba..d842e56396 100644--- a/app/src/utils/__tests__/toolTimelineFormatting.test.ts+++ b/app/src/utils/__tests__/toolTimelineFormatting.test.ts@@ -443,6 +443,19 @@ describe('categorizeTool', () => {expect(categorizeTool('subagent:web_fetch')).toBe('fetch');expect(categorizeTool('GMAIL_SEND_EMAIL')).toBe('other');});++ it('categorizes the canonical web-search name, not only its settings id', () => {+ // `web_search` is the UI toggle id; the core expands it to `web_search_tool`+ // (`src/openhuman/tools/user_filter.rs:79-80`), and that is the name a+ // timeline row actually carries. The rest of this file already special-cased+ // the canonical name for labels and provider attribution; the category map+ // was the one place that had not, so a real search row categorized as+ // `other` — wrong icon and wrong group summary in the rail, and (since+ // #6169) a row kept on the main transcript that belongs in the rail.+ expect(categorizeTool('web_search_tool')).toBe('search');+ expect(categorizeTool('web_search')).toBe('search');+ expect(categorizeTool('subagent:web_search_tool')).toBe('search');+ });});describe('buildProcessingBlocks', () => {diff --git a/app/src/utils/toolTimelineFormatting.ts b/app/src/utils/toolTimelineFormatting.tsindex e88f53f54e..7a0a9ee209 100644--- a/app/src/utils/toolTimelineFormatting.ts+++ b/app/src/utils/toolTimelineFormatting.ts@@ -179,7 +179,13 @@ const TOOL_CATEGORIES: Record<string, ToolCategory> = {apply_patch: 'write',grep: 'search',glob: 'search',+ // `web_search_tool` is the runtime tool name; `web_search` is only the UI+ // toggle id the core expands from (`tools/user_filter.rs:79-80`, and+ // `test/e2e/specs/harness-search-tool-flow.spec.ts:10` says so outright).+ // Both are mapped: the toggle id never reaches a timeline row, but leaving+ // it out would break any older snapshot that recorded the alias.web_search: 'search',+ web_search_tool: 'search',gitbooks_search: 'search',gitbooks_get_page: 'read',shell: 'run',