From f7e2843d4c5c4e9e58b68e55720ecc3f8c6652a7 Mon Sep 17 00:00:00 2001 From: thzxx Date: Wed, 10 Jun 2026 15:08:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20=E2=80=94=20handleAppendFile=E6=AE=8B?= =?UTF-8?q?=E7=95=99=E5=BC=95=E7=94=A8=20+=20=5Fenhanced=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/tool-handlers-system.ts | 2 +- src/main/tool-handlers.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/tool-handlers-system.ts b/src/main/tool-handlers-system.ts index 51f6090..814f5ba 100644 --- a/src/main/tool-handlers-system.ts +++ b/src/main/tool-handlers-system.ts @@ -599,7 +599,7 @@ export async function handleWebSearch(params: { query: string; max_results?: num if (fetchResult.success && fetchResult.content) { const text = String(fetchResult.content).replace(/\s+/g, ' ').trim(); r.snippet = text.length > 200 ? text.slice(0, 200) + '…' : text; - r._enhanced = true; + (r as any)._enhanced = true; } } catch { /* enhancement is optional */ } })); diff --git a/src/main/tool-handlers.ts b/src/main/tool-handlers.ts index 58ff5af..e261abb 100644 --- a/src/main/tool-handlers.ts +++ b/src/main/tool-handlers.ts @@ -16,7 +16,6 @@ export { handleDeleteFile, handleMoveFile, handleCopyFile, - handleAppendFile, handleEditFile, handleGetFileInfo, handleTree,