From 58941d1edd38e0f8f8cbf744f72332671da3bb88 Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Fri, 17 Jul 2026 16:22:38 -0400 Subject: [PATCH] fix: normalize dashboard label rendering (#1732) * fix: normalize tool call rendering Co-authored-by: open-swe[bot] * fix: simplify tool call labels Co-authored-by: open-swe[bot] * fix: capitalize dashboard UI labels Co-authored-by: open-swe[bot] --------- Co-authored-by: Ramon Nogueira <270434257+ramon-langchain@users.noreply.github.com> Co-authored-by: open-swe[bot] (cherry picked from commit d714586ce6928e4848214a8fce78cc4597ff2684) Co-authored-by: Ramon Nogueira --- .../agents/components/AgentsThreadsPage.tsx | 8 +- .../components/WorkflowApprovalCard.tsx | 4 +- .../agents/components/chat/CloudPromptBar.tsx | 2 +- .../components/chat/ToolExecution.test.ts | 39 +++++++++ .../agents/components/chat/ToolExecution.tsx | 57 +------------ .../components/chat/toolExecutionDisplay.ts | 82 +++++++++++++++++++ .../components/messages/ThinkingSpinner.tsx | 22 ++--- .../features/agents/experiments/PromptBar.tsx | 2 +- .../features/agents/lib/streamMessagesToUi.ts | 8 +- 9 files changed, 149 insertions(+), 75 deletions(-) create mode 100644 ui/src/features/agents/components/chat/ToolExecution.test.ts create mode 100644 ui/src/features/agents/components/chat/toolExecutionDisplay.ts diff --git a/ui/src/features/agents/components/AgentsThreadsPage.tsx b/ui/src/features/agents/components/AgentsThreadsPage.tsx index 1d89dd01..04f96cc3 100644 --- a/ui/src/features/agents/components/AgentsThreadsPage.tsx +++ b/ui/src/features/agents/components/AgentsThreadsPage.tsx @@ -61,6 +61,10 @@ function triToBool(value: TriState): boolean | undefined { return undefined } +function displayStatus(status: AgentStatus): string { + return STATUS_OPTIONS.find((option) => option.value === status)?.label ?? status +} + export function AgentsThreadsPage({ filters, onFiltersChange, @@ -279,8 +283,8 @@ function ThreadListItem({ thread }: { thread: AgentThread }) {

{thread.title}

- {thread.repoFullName || "no repo"} · {thread.status} - {isResolved ? " · resolved" : ""} + {thread.repoFullName || "No repo"} · {displayStatus(thread.status)} + {isResolved ? " · Resolved" : ""}