From 9f88c20bf47e3f451b5ca823ef90ebd3b5730327 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:31:02 -0400 Subject: [PATCH] fix(chat): present aborted messages as a muted status instead of an error Aborted messages render as an inline status (label 'Stopped', muted tone, status role) while other errors keep the destructive tone as a compact alert row. --- .../src/components/message/MessageError.tsx | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/message/MessageError.tsx b/frontend/src/components/message/MessageError.tsx index f92b5b44..68e45e0c 100644 --- a/frontend/src/components/message/MessageError.tsx +++ b/frontend/src/components/message/MessageError.tsx @@ -13,7 +13,7 @@ const ERROR_LABELS: Record = { 'provider.timeout': 'Provider request timed out', 'permission.rejected': 'Permission denied', 'tool.execution': 'Tool execution failed', - aborted: 'Message aborted', + aborted: 'Stopped', } function getErrorIcon(errorType: string) { @@ -33,14 +33,21 @@ function getErrorIcon(errorType: string) { export const MessageError = memo(function MessageError({ error }: MessageErrorProps) { const Icon = getErrorIcon(error.type) const label = ERROR_LABELS[error.type] ?? 'Error' + const isAborted = error.type === 'aborted' + const tone = isAborted + ? 'text-muted-foreground' + : 'rounded-md border border-destructive/30 bg-destructive/10 px-2 py-1 text-destructive' return ( -
- -
-
{label}
-
{error.message}
-
+
+ + {label} + {error.message && ( + <> + + {error.message} + + )}
) })