From e81d355c688da3e58319a2705462bf84047ba5a4 Mon Sep 17 00:00:00 2001 From: thzxx Date: Thu, 18 Jun 2026 14:17:58 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E6=B7=BB=E5=8A=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=B3=A8=E5=85=A5=E6=97=A5=E5=BF=97=EF=BC=8C?= =?UTF-8?q?=E6=8E=92=E6=9F=A5=E6=96=87=E4=BB=B6=E6=9C=AA=E8=A2=ABAI?= =?UTF-8?q?=E5=88=86=E6=9E=90=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/input-area.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/input-area.ts b/src/renderer/components/input-area.ts index 97fb6c2..0a748be 100644 --- a/src/renderer/components/input-area.ts +++ b/src/renderer/components/input-area.ts @@ -1006,7 +1006,9 @@ async function sendMessageWithAgentLoop(text: string, currentSession: ChatSessio if (text) apiParts.push(text); if (userFiles.length > 0) { const fileContents = pendingFiles.map(f => ({ language: f.language, content: f.content })); - apiParts.push(...buildFileContentParts(fileContents)); + const fileParts = buildFileContentParts(fileContents); + apiParts.push(...fileParts); + logInfo('📄 文件内容已注入', `${fileParts.length} 段, 共 ${fileContents.reduce((s, f) => s + f.content.length, 0)} 字符`); } let allVids: Array<{ name: string; count: number; dur: number; frames: Array<{ timestampSeconds: number; name: string }> }> = []; if (hasVideos) {