From 0b2d8414a6dbf32b1a9686bdba6f0288bad61258 Mon Sep 17 00:00:00 2001 From: thzxx Date: Thu, 18 Jun 2026 13:29:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=86=E9=A2=91=E6=8C=87=E7=A4=BA?= =?UTF-8?q?=E7=89=8C=E6=98=BE=E7=A4=BA=E6=96=87=E4=BB=B6=E5=90=8D=EF=BC=8C?= =?UTF-8?q?=E5=A4=9A=E8=A7=86=E9=A2=91=E6=98=BE=E7=A4=BA'2=E4=B8=AA?= =?UTF-8?q?=E8=A7=86=E9=A2=91'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/chat-area.ts | 4 +++- src/renderer/components/input-area.ts | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/chat-area.ts b/src/renderer/components/chat-area.ts index 60222d6..bc53990 100644 --- a/src/renderer/components/chat-area.ts +++ b/src/renderer/components/chat-area.ts @@ -185,7 +185,9 @@ export function appendMessageDOM(msg: ChatMessage, index: number): void { if ((msg as any)._videoFrames && (msg as any)._videoFrames.length > 0) { const n = (msg as any)._videoFrames.length; - contentHtml += `
🎬 视频帧序列 · ${n} 帧 · 1fps
`; + const name = (msg as any)._videoMeta?.fileName || ''; + const label = name ? `${name} · ` : ''; + contentHtml += `
🎬 ${label}${n} 帧 · 1fps
`; } if (msg.files && msg.files.length > 0) { diff --git a/src/renderer/components/input-area.ts b/src/renderer/components/input-area.ts index a72c4bf..4700030 100644 --- a/src/renderer/components/input-area.ts +++ b/src/renderer/components/input-area.ts @@ -1032,7 +1032,11 @@ async function sendMessageWithAgentLoop(text: string, currentSession: ChatSessio if (allVids.length > 0) { const totalFrames = allVids.flatMap(v => v.frames); msg._videoFrames = totalFrames; - msg._videoMeta = { fileName: allVids[0].name, duration: allVids[0].dur, frameCount: totalFrames.length }; + msg._videoMeta = { + fileName: allVids.length === 1 ? allVids[0].name : `${allVids.length}个视频`, + duration: allVids[0].dur, + frameCount: totalFrames.length + }; } if (userFiles.length > 0) { msg.files = userFiles;