diff --git a/ui/src/chat/ChatBubble.vue b/ui/src/chat/ChatBubble.vue index 945fef0c3..7b93846aa 100644 --- a/ui/src/chat/ChatBubble.vue +++ b/ui/src/chat/ChatBubble.vue @@ -7,6 +7,7 @@ import { CodeBlockCopyButton } from "@/components/ui/code-block"; import { Message, MessageContent, MessageFooter } from "@/components/ui/message"; import ChatAttachment from "./ChatAttachment.vue"; import ChatMarkdown from "./ChatMarkdown.vue"; +import ChatThinking from "./ChatThinking.vue"; import ChatToolCall from "./ChatToolCall.vue"; import ChatToolGroup from "./ChatToolGroup.vue"; import type { ChatMedia, ChatToolCall as ToolCall } from "./state"; @@ -27,8 +28,12 @@ const props = withDefaults( assistant?: boolean; /** The turn is still arriving: a tool call with no outcome is running. */ streaming?: boolean; + /** The live turn's thinking so far, rendered as a collapsible trace. */ + reasoning?: string; + /** The live turn is still arriving and has not reasoned yet. */ + thinkingPending?: boolean; }>(), - { tools: () => [], media: () => [], assistant: false, streaming: false }, + { tools: () => [], media: () => [], assistant: false, streaming: false, reasoning: "", thinkingPending: false }, ); // The reply in the order it happened: text up to each call's offset, then the @@ -73,6 +78,11 @@ const segments = computed(() => { />