Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(chat): 将回复图标改为简洁聊天气泡
Dashbfac9abb43b2
diff --git a/apps/desktop/src/renderer/components/chat/ChatReplyIcon.tsx b/apps/desktop/src/renderer/components/chat/ChatReplyIcon.tsxnew file mode 100644index 0000000000..0d00a2cc8c--- /dev/null+++ b/apps/desktop/src/renderer/components/chat/ChatReplyIcon.tsx@@ -0,0 +1,12 @@+import { createLucideIcon } from 'lucide-react';++/** A wide, rounded chat bubble with a short lower tail. */+export const ChatReplyIcon = createLucideIcon('ChatReply', [+ [+ 'path',+ {+ d: 'M8 4h8a5 5 0 0 1 5 5v3.5a5 5 0 0 1-5 5h-4l-4 3v-3a5 5 0 0 1-5-5V9a5 5 0 0 1 5-5Z',+ key: 'bubble',+ },+ ],+]);diff --git a/apps/desktop/src/renderer/components/chat/MessageActionBar.tsx b/apps/desktop/src/renderer/components/chat/MessageActionBar.tsxindex 4c7dc39901..ccf8f9677b 100644--- a/apps/desktop/src/renderer/components/chat/MessageActionBar.tsx+++ b/apps/desktop/src/renderer/components/chat/MessageActionBar.tsx@@ -34,7 +34,6 @@ import {Ellipsis,Link2,MessageSquarePlus,- MessageSquareReply,MessagesSquare,SmilePlus,Pencil,@@ -47,6 +46,7 @@ import { useStableTranslation as useTranslation } from '@/hooks/useStableTranslaimport { cn } from '@/lib/utils';import { MENU_ITEM_CLASS } from '@/features/cc-agent/sidebar/menuStyles';import { CHAT_COLOR_TRANSITION_CLASS, CHAT_ICON_BUTTON_CLASS } from './chatChrome';+import { ChatReplyIcon } from './ChatReplyIcon';import { Spinner } from '@/components/ui/spinner';import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';import { Tip, Tooltip } from '@/components/ui/tooltip';@@ -384,7 +384,7 @@ export function MessageActionBar({aria-label={replyAction?.label ?? t('chat.messageActionBar.reply')}>{replyAction ? <MessagesSquare size={14} strokeWidth={2} className={actionIconClass} />- : <MessageSquareReply size={14} strokeWidth={2} className={actionIconClass} />}+ : <ChatReplyIcon size={14} strokeWidth={2} className={actionIconClass} />}{!!replyAction?.count && <span className={cn('text-12 tabular-nums', actionIconClass)}>{replyAction.count}</span>}</button></Tooltip.Trigger>@@ -404,7 +404,7 @@ export function MessageActionBar({className={actionButtonClass}aria-label={quoteAction.label}>- <MessageSquareReply size={14} strokeWidth={2} className={actionIconClass} />+ <ChatReplyIcon size={14} strokeWidth={2} className={actionIconClass} /></button></Tip>);diff --git a/apps/desktop/src/renderer/components/chat/__tests__/MessageActionBar.test.tsx b/apps/desktop/src/renderer/components/chat/__tests__/MessageActionBar.test.tsxindex 5cb9e5f18a..a99cce8970 100644--- a/apps/desktop/src/renderer/components/chat/__tests__/MessageActionBar.test.tsx+++ b/apps/desktop/src/renderer/components/chat/__tests__/MessageActionBar.test.tsx@@ -180,7 +180,7 @@ describe('MessageActionBar', () => {expect(screen.queryByText('chat.messageActionBar.turnTokens')).toBeNull();const reply = screen.getByRole('button', { name: 'chat.messageActionBar.reply' });- expect(reply.querySelector('.lucide-message-square-reply')).toBeTruthy();+ expect(reply.querySelector('.lucide-chat-reply')).toBeTruthy();fireEvent.click(reply);expect(onAddToChat).toHaveBeenCalledTimes(1);diff --git a/apps/desktop/src/renderer/features/bots/BotGroupQuote.tsx b/apps/desktop/src/renderer/features/bots/BotGroupQuote.tsxindex 345b621fac..c0b34b130f 100644--- a/apps/desktop/src/renderer/features/bots/BotGroupQuote.tsx+++ b/apps/desktop/src/renderer/features/bots/BotGroupQuote.tsx@@ -5,11 +5,12 @@* (原消息可定位时点击跳过去)。左侧竖线与 Markdown 引用块同一 token;摘要只占一到两行,* 长消息不会撑开时间线。原消息已删除时只显示作者与「原消息已删除」,不再露出快照。*/-import { MessageSquareReply, Paperclip, X } from 'lucide-react';+import { Paperclip, X } from 'lucide-react';import { useTranslation } from 'react-i18next';import type { TFunction } from 'i18next';import { Tip } from '@/components/ui/tooltip';+import { ChatReplyIcon } from '@/components/chat/ChatReplyIcon';import { cn } from '@/lib/utils';import type { BotGroupQuoteDisplay } from '../../../shared/botGroupChat';@@ -97,7 +98,7 @@ export function BotGroupQuotePreview({ display, onRemove }: { display: BotGroupQconst removeLabel = t('bots.groupChat.quote.remove');return (<div data-testid="bot-group-quote-preview" data-quote-state={display.state} className="flex min-w-0 select-none items-center gap-2">- <MessageSquareReply size={14} aria-hidden className="shrink-0 text-[var(--text-secondary)]" />+ <ChatReplyIcon size={14} aria-hidden className="shrink-0 text-[var(--text-secondary)]" /><span aria-hidden className="h-4 w-0.5 shrink-0 bg-[var(--msg-blockquote-border)]" /><QuoteLines display={display} compact /><Tip text={removeLabel}>