diff --git a/frontend/src/app/chat/components/assistant-message.tsx b/frontend/src/app/chat/components/assistant-message.tsx index c27b26b9..96892ffc 100644 --- a/frontend/src/app/chat/components/assistant-message.tsx +++ b/frontend/src/app/chat/components/assistant-message.tsx @@ -1,6 +1,7 @@ import { GitBranch } from "lucide-react"; import DogIcon from "@/components/logo/dog-icon"; import { MarkdownRenderer } from "@/components/markdown-renderer"; +import { cn } from "@/lib/utils"; import type { FunctionCall } from "../types"; import { FunctionCalls } from "./function-calls"; import { Message } from "./message"; @@ -14,6 +15,7 @@ interface AssistantMessageProps { isStreaming?: boolean; showForkButton?: boolean; onFork?: (e: React.MouseEvent) => void; + isCompleted?: boolean; } export function AssistantMessage({ @@ -25,12 +27,16 @@ export function AssistantMessage({ isStreaming = false, showForkButton = false, onFork, + isCompleted = false, }: AssistantMessageProps) { return ( - + } actions={ @@ -53,7 +59,7 @@ export function AssistantMessage({ />
- - - {user?.name ? ( - user.name.charAt(0).toUpperCase() - ) : ( - - )} - - - } - > -

- {content} -

- - ); + return ( + + + + {user?.name ? user.name.charAt(0).toUpperCase() : } + + + } + > +

+ {content} +

+
+ ); }