diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/displays/AIReasoningPart.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/displays/AIReasoningPart.tsx index fe905e47d..f6f3972ac 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/displays/AIReasoningPart.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/displays/AIReasoningPart.tsx @@ -24,6 +24,7 @@ export const AIReasoningPart: React.FC = React.memo( setIsOpen(true) } }, [isStreaming]) + if (!text) return null return (
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIChatMessage.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIChatMessage.tsx index 9b7d0cf94..2912dfeee 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIChatMessage.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIChatMessage.tsx @@ -63,7 +63,6 @@ export const AIChatMessage: React.FC = React.memo(({ message throw thenable } - const [isHovered, setIsHovered] = React.useState(false) const getMessageMarkdownFormat = useMessageMarkdownFormat(message) const handleCopy = React.useCallback(async () => { @@ -77,12 +76,7 @@ export const AIChatMessage: React.FC = React.memo(({ message }, [getMessageMarkdownFormat]) return ( -
setIsHovered(true)} - onMouseLeave={() => setIsHovered(false)} - > +
{/* Normal message display */}
@@ -92,14 +86,7 @@ export const AIChatMessage: React.FC = React.memo(({ message
{/* Action buttons */} - +
- +
diff --git a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMessageParts.tsx b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMessageParts.tsx index 3f90f0b48..a6d5ec595 100644 --- a/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMessageParts.tsx +++ b/apps/desktop/layer/renderer/src/modules/ai-chat/components/message/AIMessageParts.tsx @@ -73,7 +73,7 @@ export const AIMessageParts: React.FC = React.memo(({ messa case "tool-displayFlowChart": { const loadingElement = ( -
+