From a090385f34bec1f6919cf21919de73451433ba29 Mon Sep 17 00:00:00 2001 From: Gagan Date: Fri, 10 Jul 2026 01:21:44 +0530 Subject: [PATCH] fix(x): show message copy button in side-pane chat The side-pane copilot renders messages through its own markup in chat-sidebar.tsx, which never got the hover copy button added to the full-screen chat renderer. Maximizing the pane stays on the same code path, so it was missing there too. --- .../renderer/src/components/chat-sidebar.tsx | 63 ++++++++++--------- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/apps/x/apps/renderer/src/components/chat-sidebar.tsx b/apps/x/apps/renderer/src/components/chat-sidebar.tsx index 56a3a798..025a638d 100644 --- a/apps/x/apps/renderer/src/components/chat-sidebar.tsx +++ b/apps/x/apps/renderer/src/components/chat-sidebar.tsx @@ -21,6 +21,7 @@ import { import { Message, MessageContent, + MessageCopyButton, MessageResponse, } from '@/components/ai-elements/message' import { TurnActivityIndicator } from '@/components/turn-activity-indicator' @@ -416,14 +417,17 @@ export function ChatSidebar({ {item.content && ( - - - {item.content} - - +
+ + + {item.content} + + + +
)} ) @@ -431,26 +435,29 @@ export function ChatSidebar({ const { message, files } = parseAttachedFiles(item.content) return ( - - {files.length > 0 && ( -
- {files.map((filePath, index) => ( - - @{wikiLabel(filePath)} - - ))} -
- )} - - {message} - -
+
+ + {files.length > 0 && ( +
+ {files.map((filePath, index) => ( + + @{wikiLabel(filePath)} + + ))} +
+ )} + + {message} + +
+ +
) }