From 1000a6b52505ca339ea0fb3df53ed8b3211d298e Mon Sep 17 00:00:00 2001 From: thzxx Date: Fri, 12 Jun 2026 14:30:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=8A=A8=E6=8A=93=E5=8F=96?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E6=88=AA=E6=96=AD=EF=BC=8C=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E5=AE=8C=E6=95=B4=E7=BD=91=E9=A1=B5=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/tool-handlers-system.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/tool-handlers-system.ts b/src/main/tool-handlers-system.ts index c640efb..c75540d 100644 --- a/src/main/tool-handlers-system.ts +++ b/src/main/tool-handlers-system.ts @@ -785,9 +785,9 @@ async function applyAutoFetch(result: ToolResult, fetchTop: number): Promise = []; for (const r of toFetch) { try { - const fetchResult = await handleWebFetch({ url: r.url, max_chars: 5000, retry: false }); + const fetchResult = await handleWebFetch({ url: r.url, retry: false }); if (fetchResult.success && fetchResult.content) { - fetched.push({ url: r.url, title: r.title, content: String(fetchResult.content).slice(0, 5000) }); + fetched.push({ url: r.url, title: r.title, content: String(fetchResult.content) }); } } catch { /* skip failed fetch */ } }