From 5029dd467ee2c15c5522beed26d4c16ba1c4569d Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Mon, 3 Aug 2026 13:20:39 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=82=EF=B8=8F=20fix:=20Truncate=20Overflow?= =?UTF-8?q?ing=20Activity=20and=20Intent=20Labels=20in=20Chat=20UI=20(#146?= =?UTF-8?q?07)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✂️ fix: Truncate Overflowing Activity and Intent Labels in Chat UI * 🖍️ style: Use Middle Dot Separator in Tool Label Chrome * ✂️ fix: Truncate Completed Web Search Label --- .../components/Chat/Messages/Content/Part.tsx | 2 +- .../Chat/Messages/Content/Parts/BashCall.tsx | 2 +- .../Messages/Content/Parts/ExecuteCode.tsx | 2 +- .../Content/Parts/FileAuthoringCall.tsx | 2 +- .../Parts/OpenAIImageGen/ProgressText.tsx | 2 +- .../Content/Parts/PendingSkillCall.tsx | 6 ++--- .../Messages/Content/Parts/ReadFileCall.tsx | 2 +- .../Chat/Messages/Content/Parts/SkillCall.tsx | 2 +- .../Messages/Content/Parts/SubagentCall.tsx | 4 +++- .../Chat/Messages/Content/ProgressText.tsx | 22 ++++++++++--------- .../Chat/Messages/Content/ToolCallGroup.tsx | 7 ++++-- .../Chat/Messages/Content/WebSearch.tsx | 4 ++-- .../Content/__tests__/ToolCallGroup.test.tsx | 4 ++-- 13 files changed, 34 insertions(+), 27 deletions(-) diff --git a/client/src/components/Chat/Messages/Content/Part.tsx b/client/src/components/Chat/Messages/Content/Part.tsx index 86274c750a..076dfbc1cd 100644 --- a/client/src/components/Chat/Messages/Content/Part.tsx +++ b/client/src/components/Chat/Messages/Content/Part.tsx @@ -164,7 +164,7 @@ const Part = memo(function Part({ const failed = part.status === 'failed' || part.status === 'partial'; return (
{display}
diff --git a/client/src/components/Chat/Messages/Content/Parts/BashCall.tsx b/client/src/components/Chat/Messages/Content/Parts/BashCall.tsx index fa2f033fb8..97a045f449 100644 --- a/client/src/components/Chat/Messages/Content/Parts/BashCall.tsx +++ b/client/src/components/Chat/Messages/Content/Parts/BashCall.tsx @@ -96,7 +96,7 @@ export default function BashCall({ return ( <> -
+
-
+
-
+
diff --git a/client/src/components/Chat/Messages/Content/Parts/PendingSkillCall.tsx b/client/src/components/Chat/Messages/Content/Parts/PendingSkillCall.tsx index 15b0d1f2a7..21f41a4557 100644 --- a/client/src/components/Chat/Messages/Content/Parts/PendingSkillCall.tsx +++ b/client/src/components/Chat/Messages/Content/Parts/PendingSkillCall.tsx @@ -33,10 +33,10 @@ export default function PendingSkillCall({ : localize('com_ui_skill_running', { 0: skillName }); return ( -
+
@@ -44,7 +44,7 @@ export default function PendingSkillCall({ className={cn('size-4 shrink-0 text-text-secondary', !loaded && 'animate-pulse')} aria-hidden="true" /> - {text} + {text}
diff --git a/client/src/components/Chat/Messages/Content/Parts/ReadFileCall.tsx b/client/src/components/Chat/Messages/Content/Parts/ReadFileCall.tsx index 0519d51036..91c25cd816 100644 --- a/client/src/components/Chat/Messages/Content/Parts/ReadFileCall.tsx +++ b/client/src/components/Chat/Messages/Content/Parts/ReadFileCall.tsx @@ -92,7 +92,7 @@ export default function ReadFileCall({ return ( <> -
+
-
+
)}
- {headerText} + + {headerText} + {subagentNameLabel ? ( { if (popover) { return (
-
+
{children}
@@ -24,10 +27,7 @@ const Wrapper = ({ popover, children }: { popover: boolean; children: React.Reac return (
-
+
{children}
@@ -98,10 +98,12 @@ export default function ProgressText({ aria-expanded={hasInput ? isExpanded : undefined} > {icon} - {text} + + {text} + {subtitle && {subtitle}} {errorSuffix && ( - — {errorSuffix} + · {errorSuffix} )} {hasInput && ( {groupLabel} @@ -387,7 +388,9 @@ export default function ToolCallGroup({ * questions) — every entry deduplicates to the same token, which * adds noise without info. Mixed groups keep the summary. */} {toolNameSummary && !allSubagents && !allAskQuestions && ( - — {toolNameSummary} + + · {toolNameSummary} + )}
diff --git a/client/src/components/Chat/Messages/Content/__tests__/ToolCallGroup.test.tsx b/client/src/components/Chat/Messages/Content/__tests__/ToolCallGroup.test.tsx index f05631f0f6..38129e3428 100644 --- a/client/src/components/Chat/Messages/Content/__tests__/ToolCallGroup.test.tsx +++ b/client/src/components/Chat/Messages/Content/__tests__/ToolCallGroup.test.tsx @@ -507,7 +507,7 @@ describe('ToolCallGroup image hoisting', () => { ], }); - expect(screen.getByText('— Code')).toBeInTheDocument(); + expect(screen.getByText('· Code')).toBeInTheDocument(); expect(screen.queryByText(/Code, bash_tool/)).not.toBeInTheDocument(); expect(screen.getByTestId('stacked-icons')).toHaveAttribute( 'data-tool-names', @@ -530,7 +530,7 @@ describe('ToolCallGroup image hoisting', () => { expect(screen.queryByText('Used 2 tools')).not.toBeInTheDocument(); expect(screen.getByTestId('question-icon')).toBeInTheDocument(); expect(screen.queryByTestId('stacked-icons')).not.toBeInTheDocument(); - expect(screen.queryByText(/— ask_user_question/)).not.toBeInTheDocument(); + expect(screen.queryByText(/· ask_user_question/)).not.toBeInTheDocument(); }); it('uses the present tense while a multi-question turn is still streaming', () => {