From 57eec76a7bbc497e4a73a0d63bdcc4f774e99a7b Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Thu, 30 Apr 2026 14:19:20 +0300 Subject: [PATCH] fix: polish VS Code chat actions and bash tool text Hide multi-run action in VS Code chat Remove rounded bash tool text surfaces --- .../components/chat/message/MessageBody.tsx | 37 ++++++++++--------- .../chat/message/parts/ToolPart.tsx | 4 +- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/packages/ui/src/components/chat/message/MessageBody.tsx b/packages/ui/src/components/chat/message/MessageBody.tsx index c0b54af6..0368a7dd 100644 --- a/packages/ui/src/components/chat/message/MessageBody.tsx +++ b/packages/ui/src/components/chat/message/MessageBody.tsx @@ -1692,7 +1692,8 @@ const AssistantMessageBody = React.memo(({ }, [messageCompletedAt, messageCreatedAt]); const footerTimestampClassName = 'text-sm text-muted-foreground/60 tabular-nums flex items-center gap-1'; - const canOpenMessagePreview = !isMobile && !isVSCodeRuntime(); + const isVSCode = isVSCodeRuntime(); + const canOpenMessagePreview = !isMobile && !isVSCode; const finalTurnActionButtons = ( <> @@ -1721,7 +1722,7 @@ const AssistantMessageBody = React.memo(({ {t('chat.messageBody.actions.openPreview')} ) : null} - {!isVSCodeRuntime() ? ( + {!isVSCode ? ( - - {t('chat.messageBody.actions.startNewMultiRun')} - + {!isVSCode ? ( + + + + + {t('chat.messageBody.actions.startNewMultiRun')} + + ) : null} ); diff --git a/packages/ui/src/components/chat/message/parts/ToolPart.tsx b/packages/ui/src/components/chat/message/parts/ToolPart.tsx index 8e784596..4cfa8fe5 100644 --- a/packages/ui/src/components/chat/message/parts/ToolPart.tsx +++ b/packages/ui/src/components/chat/message/parts/ToolPart.tsx @@ -1714,7 +1714,7 @@ const ToolExpandedContent: React.FC = React.memo(({ syntaxTheme={syntaxTheme} />, { - className: 'p-1', + className: part.tool === 'bash' ? 'p-1 rounded-none' : 'p-1', maxHeightClass: part.tool === 'bash' ? 'max-h-[46vh]' : undefined, } ); @@ -1757,7 +1757,7 @@ const ToolExpandedContent: React.FC = React.memo(({ ), { maxHeightClass: 'max-h-60', - className: part.tool === 'bash' ? 'tool-input-surface p-0' : 'tool-input-surface', + className: part.tool === 'bash' ? 'tool-input-surface p-0 rounded-none' : 'tool-input-surface', } )}