Skip to content

Commit 2cecaf3

Browse files
authored
fix(chat): only show copy btn after response has been fully streamed (#6)
1 parent 1074294 commit 2cecaf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/chat/[id].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ onMounted(() => {
9595
<UChatMessages
9696
:messages="chat.messages"
9797
:status="chat.status"
98-
:assistant="{ actions: [{ label: 'Copy', icon: copied ? 'i-lucide-copy-check' : 'i-lucide-copy', onClick: copy }] }"
98+
:assistant="chat.status !== 'streaming' ? { actions: [{ label: 'Copy', icon: copied ? 'i-lucide-copy-check' : 'i-lucide-copy', onClick: copy }] } : { actions: [] }"
9999
class="lg:pt-(--ui-header-height) pb-4 sm:pb-6"
100100
:spacing-offset="160"
101101
>

0 commit comments

Comments
 (0)