From 9881dd35dfee8f4f28bfb7b660290f98b9043073 Mon Sep 17 00:00:00 2001 From: Aaron Nelson Date: Sun, 26 Apr 2026 17:30:25 -0400 Subject: [PATCH] Add copy button to assistant messages --- components/MessageList.tsx | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/components/MessageList.tsx b/components/MessageList.tsx index 0171a08..4a587aa 100644 --- a/components/MessageList.tsx +++ b/components/MessageList.tsx @@ -60,11 +60,39 @@ export default function MessageList() { {m.content} )} - {m.sources && m.sources.length > 0 && ( -
- Sources: {[...new Set(m.sources)].join(', ')} -
- )} +
+ {m.role === 'assistant' && ( + + )} + {m.sources && m.sources.length > 0 && ( +
+ Sources: {[...new Set(m.sources)].join(', ')} +
+ )} +
))}