From 7fe87e515b0bed778bf1d8a12d53ba2f9c1d2c71 Mon Sep 17 00:00:00 2001 From: Roe-xin Date: Tue, 10 Mar 2026 20:53:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E5=90=8E=E6=B7=BB=E5=8A=A0=E7=BB=93=E6=9D=9F?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/messageHandler.ts | 5 +++++ src/views/webviewContent.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/utils/messageHandler.ts b/src/utils/messageHandler.ts index cefc3f0..05b9097 100644 --- a/src/utils/messageHandler.ts +++ b/src/utils/messageHandler.ts @@ -393,6 +393,11 @@ async function handleUserMessageWithBackend( isComplete: true, }); + // 发送任务完成消息 + panel.webview.postMessage({ + command: "taskComplete", + }); + // 发送系统通知 - AI 响应完成 const notificationService = NotificationService.getInstance(); notificationService.success( diff --git a/src/views/webviewContent.ts b/src/views/webviewContent.ts index 86e2069..baddbc9 100644 --- a/src/views/webviewContent.ts +++ b/src/views/webviewContent.ts @@ -770,6 +770,11 @@ export function getWebviewContent( hideLoadingIndicator(); break; + case 'taskComplete': + // 显示任务完成提示 + addMessage('✅ 任务已完成', 'bot'); + break; + case 'workspaceStatus': // 更新工作区状态 if (typeof hasWorkspace !== 'undefined') {