feat:新增对话结束后添加结束语句

This commit is contained in:
Roe-xin
2026-03-10 20:53:13 +08:00
parent 790110ba7e
commit 7fe87e515b
2 changed files with 10 additions and 0 deletions

View File

@ -393,6 +393,11 @@ async function handleUserMessageWithBackend(
isComplete: true, isComplete: true,
}); });
// 发送任务完成消息
panel.webview.postMessage({
command: "taskComplete",
});
// 发送系统通知 - AI 响应完成 // 发送系统通知 - AI 响应完成
const notificationService = NotificationService.getInstance(); const notificationService = NotificationService.getInstance();
notificationService.success( notificationService.success(

View File

@ -770,6 +770,11 @@ export function getWebviewContent(
hideLoadingIndicator(); hideLoadingIndicator();
break; break;
case 'taskComplete':
// 显示任务完成提示
addMessage('✅ 任务已完成', 'bot');
break;
case 'workspaceStatus': case 'workspaceStatus':
// 更新工作区状态 // 更新工作区状态
if (typeof hasWorkspace !== 'undefined') { if (typeof hasWorkspace !== 'undefined') {