From 444fb7962684ce1dcacc8d4092f6ece390244b59 Mon Sep 17 00:00:00 2001 From: thzxx Date: Thu, 18 Jun 2026 14:41:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E4=BB=B6=E4=B9=9F=E5=9C=A8?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=86=85=E5=AE=B9=E4=B8=AD=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=20[=E6=96=87=E4=BB=B6:=20xxx.md]=20=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/input-area.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/components/input-area.ts b/src/renderer/components/input-area.ts index 0a748be..1f73dda 100644 --- a/src/renderer/components/input-area.ts +++ b/src/renderer/components/input-area.ts @@ -999,6 +999,9 @@ async function sendMessageWithAgentLoop(text: string, currentSession: ChatSessio } else if (pendingImages.length > 1) { displayParts.push(`[${pendingImages.length} 张图片]`); } + for (const f of userFiles) { + displayParts.push(`[文件: ${f.name}]`); + } const displayContent = displayParts.join('\n'); // Ollama API 用的完整描述(文字 + 文件 + 视频帧序列 + 图片提示)