From a08576d202de94f8d2783be9dee47481fc36ee60 Mon Sep 17 00:00:00 2001 From: Pragy Agarwal Date: Thu, 14 May 2026 05:16:51 +0530 Subject: [PATCH] feat: extend hover copy button to tool results and intermediate AI text Follow-up to bff0910 which added a hover CopyButton to the text variant of LastOutputDisplay. Two more surfaces in the chat view show copyable prose and benefit from the same affordance: - LastOutputDisplay tool_result block: adds an inline CopyButton in the header row (right-aligned next to the tool name / error badge) - TextItem: passes copyable to MarkdownViewer so intermediate AI text outputs (inside the expanded view of an AI group) get the same hover copy button that ThinkingItem already has No behavior change to selection logic; both are always-visible affordances matching the existing CopyButton pattern. --- src/renderer/components/chat/LastOutputDisplay.tsx | 3 +++ src/renderer/components/chat/items/TextItem.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/chat/LastOutputDisplay.tsx b/src/renderer/components/chat/LastOutputDisplay.tsx index dbd94b78..6dcabe62 100644 --- a/src/renderer/components/chat/LastOutputDisplay.tsx +++ b/src/renderer/components/chat/LastOutputDisplay.tsx @@ -148,6 +148,9 @@ export const LastOutputDisplay = ({ Error )} +
+ +
{/* Content */} diff --git a/src/renderer/components/chat/items/TextItem.tsx b/src/renderer/components/chat/items/TextItem.tsx index cf546b81..6b5eb864 100644 --- a/src/renderer/components/chat/items/TextItem.tsx +++ b/src/renderer/components/chat/items/TextItem.tsx @@ -50,7 +50,7 @@ export const TextItem: React.FC = React.memo(function TextItem({ highlightStyle={highlightStyle} notificationDotColor={notificationDotColor} > - + ); });