From a735f55caf0ed8819e1bedb86a6ae82e8b12be91 Mon Sep 17 00:00:00 2001 From: xinyi-gong Date: Tue, 12 May 2026 11:02:04 +0800 Subject: [PATCH] fix cancel regression bug --- .../com/microsoft/copilot/eclipse/ui/chat/ChatView.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java b/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java index c64ee76d..35529e5f 100644 --- a/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java +++ b/com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/ChatView.java @@ -1176,13 +1176,7 @@ private void clearCurrentConversation() { @Override public void onCancel() { - // Send conversation/destroy to cancel in-progress turns - if (StringUtils.isNotBlank(this.conversationId)) { - CopilotLanguageServerConnection ls = CopilotCore.getPlugin().getCopilotLanguageServer(); - if (ls != null) { - ls.destroyConversation(this.conversationId); - } - } + // Destroy the temporary subagent conversation on CLS side if (StringUtils.isNotBlank(this.subagentConversationId)) { CopilotLanguageServerConnection ls = CopilotCore.getPlugin().getCopilotLanguageServer(); if (ls != null) { @@ -1190,7 +1184,6 @@ public void onCancel() { } } - // Clear subagent conversation ID on cancel this.subagentConversationId = null; this.lastRunSubagentToolCallId = null;