From 40a27cd1eede62d23034d6fc538c70e7e2d5fd58 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Mon, 9 Jun 2025 17:30:03 -0700 Subject: [PATCH] mcp tool interrupt fix --- .../void/electron-main/llmMessage/sendLLMMessage.impl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/void/electron-main/llmMessage/sendLLMMessage.impl.ts b/src/vs/workbench/contrib/void/electron-main/llmMessage/sendLLMMessage.impl.ts index 2b8f20ba..b4c794e2 100644 --- a/src/vs/workbench/contrib/void/electron-main/llmMessage/sendLLMMessage.impl.ts +++ b/src/vs/workbench/contrib/void/electron-main/llmMessage/sendLLMMessage.impl.ts @@ -366,7 +366,7 @@ const _sendOpenAICompatibleChat = async ({ messages, onText, onFinalMessage, onE onText({ fullText: fullTextSoFar, fullReasoning: fullReasoningSoFar, - toolCall: { name: toolName, rawParams: {}, isDone: false, doneParams: [], id: toolId }, + toolCall: !toolName ? undefined : { name: toolName, rawParams: {}, isDone: false, doneParams: [], id: toolId }, }) } @@ -513,7 +513,7 @@ const sendAnthropicChat = async ({ messages, providerName, onText, onFinalMessag onText({ fullText, fullReasoning, - toolCall: { name: fullToolName, rawParams: {}, isDone: false, doneParams: [], id: 'dummy' }, + toolCall: !fullToolName ? undefined : { name: fullToolName, rawParams: {}, isDone: false, doneParams: [], id: 'dummy' }, }) } // there are no events for tool_use, it comes in at the end @@ -811,7 +811,7 @@ const sendGeminiChat = async ({ onText({ fullText: fullTextSoFar, fullReasoning: fullReasoningSoFar, - toolCall: { name: toolName, rawParams: {}, isDone: false, doneParams: [], id: toolId }, + toolCall: !toolName ? undefined : { name: toolName, rawParams: {}, isDone: false, doneParams: [], id: toolId }, }) }