diff --git a/apps/desktop/src/chat/ChatWidget.tsx b/apps/desktop/src/chat/ChatWidget.tsx index f155629..4a28c11 100644 --- a/apps/desktop/src/chat/ChatWidget.tsx +++ b/apps/desktop/src/chat/ChatWidget.tsx @@ -4,7 +4,7 @@ import { listen } from "@tauri-apps/api/event" import { Store } from "@tauri-apps/plugin-store" import { appLocalDataDir, join } from "@tauri-apps/api/path" import { open } from "@tauri-apps/plugin-dialog" -import { Send, X, Minus, Loader2, Headphones, Paperclip, FileText, Image as ImageIcon, File } from "lucide-react" +import { Send, X, Minus, Loader2, Headphones, Paperclip, FileText, Image as ImageIcon, File, User } from "lucide-react" import type { ChatMessage, ChatMessagesResponse, SendMessageResponse } from "./types" const STORE_FILENAME = "machine-agent.json" @@ -381,58 +381,71 @@ export function ChatWidget({ ticketId }: ChatWidgetProps) {
) : ( -- {msg.authorName} -
- )} -{msg.body}
- {/* Anexos */} - {msg.attachments && msg.attachments.length > 0 && ( -- {formatTime(msg.createdAt)} -
+ {isAgent ?+ {msg.authorName} +
+ )} +{msg.body}
+ {/* Anexos */} + {msg.attachments && msg.attachments.length > 0 && ( ++ {formatTime(msg.createdAt)} +
+