diff --git a/frontend/src/views/chat/components/AgentStreamDisplay.vue b/frontend/src/views/chat/components/AgentStreamDisplay.vue index 9a4d948c..52e50ee5 100644 --- a/frontend/src/views/chat/components/AgentStreamDisplay.vue +++ b/frontend/src/views/chat/components/AgentStreamDisplay.vue @@ -253,6 +253,11 @@ + @@ -330,7 +335,7 @@ -
+
@@ -931,6 +936,16 @@ const isConversationDone = computed(() => { return !!doneAnswer; }); +// Whether a completed answer with content is rendered (its toolbar hosts the +// request-info button inline, so the standalone toolbar should not duplicate it) +const hasDoneAnswerContent = computed(() => { + const stream = eventStream.value; + if (!stream || stream.length === 0) return false; + return stream.some( + (e: any) => e.type === 'answer' && e.done && e.content && e.content.trim() + ); +}); + // Find the final content to display (last thinking or answer) const finalContent = computed(() => { const stream = eventStream.value;