Skip to content

Commit 930d560

Browse files
committed
fix(chat): truncate tool summary to single line
Collapsed tool rows wrapped on long summaries (e.g. `bash` with lengthy commands), making the list hard to scan. Switch from break-words to truncate so each row stays on one line with ellipsis; full content remains visible after expanding.
1 parent 9a5ec8b commit 930d560

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/src/components/chat/tool-uis/primitives.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const ToolShell: FC<ToolShellProps> = ({ icon, label, summary, status, ch
3939
<StatusIcon status={status} />
4040
<span className="shrink-0 text-content-tertiary">{icon}</span>
4141
<span className="shrink-0 font-mono text-[10px] font-semibold uppercase tracking-wide text-content-secondary">{label}</span>
42-
<span className={cn("min-w-0 flex-1 font-mono text-content-primary break-words", isCancelled && "line-through")}>{summary}</span>
42+
<span className={cn("min-w-0 flex-1 truncate font-mono text-content-primary", isCancelled && "line-through")}>{summary}</span>
4343
</CollapsibleTrigger>
4444
<CollapsibleContent className="overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down">
4545
<div className="pl-6 pr-1.5 pt-2 pb-2 overflow-x-hidden">

0 commit comments

Comments
 (0)