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;