fix: polish VS Code chat actions and bash tool text
Hide multi-run action in VS Code chat Remove rounded bash tool text surfaces
This commit is contained in:
@@ -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(({
|
||||
<TooltipContent sideOffset={6}>{t('chat.messageBody.actions.openPreview')}</TooltipContent>
|
||||
</Tooltip>
|
||||
) : null}
|
||||
{!isVSCodeRuntime() ? (
|
||||
{!isVSCode ? (
|
||||
<Tooltip delayDuration={1000}>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
@@ -1757,6 +1758,7 @@ const AssistantMessageBody = React.memo(({
|
||||
</TooltipTrigger>
|
||||
<TooltipContent sideOffset={6}>{t('chat.messageBody.actions.startNewSession')}</TooltipContent>
|
||||
</Tooltip>
|
||||
{!isVSCode ? (
|
||||
<Tooltip delayDuration={1000}>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
@@ -1772,6 +1774,7 @@ const AssistantMessageBody = React.memo(({
|
||||
</TooltipTrigger>
|
||||
<TooltipContent sideOffset={6}>{t('chat.messageBody.actions.startNewMultiRun')}</TooltipContent>
|
||||
</Tooltip>
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
|
||||
|
||||
@@ -1714,7 +1714,7 @@ const ToolExpandedContent: React.FC<ToolExpandedContentProps> = 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<ToolExpandedContentProps> = 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',
|
||||
}
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user