diff --git a/AgentCompany-New/src/renderer/src/pages/chat/ChatMessageRow.tsx b/AgentCompany-New/src/renderer/src/pages/chat/ChatMessageRow.tsx index 36879eeb..b42f5de0 100644 --- a/AgentCompany-New/src/renderer/src/pages/chat/ChatMessageRow.tsx +++ b/AgentCompany-New/src/renderer/src/pages/chat/ChatMessageRow.tsx @@ -54,7 +54,11 @@ export function ChatMessageRow({ {messageFiles.length > 0 && (
- {messageFiles.map((file) => )} + {messageFiles.map((file) => { + const attachment = attachments.find((item) => item.messageId === message.id && item.fileId === file.id); + const handoff = bot && attachment?.transferType === "handoff"; + return ; + })}
)} {onOpenThread && ( @@ -128,7 +132,7 @@ function mentionLabel(mention: ChatMentionRecord, context: MessageContext): stri throw new Error("Message mention target type is unsupported."); } -function AttachmentCard({ file }: { file: FileObjectRecord }) { +function AttachmentCard({ file, handoff = false }: { file: FileObjectRecord; handoff?: boolean }) { return (
-
{file.name}
+
+ {file.name} + {handoff && ( + + AI → AI + + )} +
{file.kind.toUpperCase()} · {file.sha256.slice(0, 8)}