From 8ef61bd32b2ac9e4e1dc8aa509870619d7e6bbd5 Mon Sep 17 00:00:00 2001 From: Daniel <57051444+daniel-lxs@users.noreply.github.com> Date: Fri, 6 Feb 2026 14:18:46 -0500 Subject: [PATCH] fix: remove noisy console.warn logs from NativeToolCallParser (#11264) Remove two console.warn messages that fire excessively when loading tasks from history: - 'Attempting to finalize unknown tool call' in finalizeStreamingToolCall() - 'Received chunk for unknown tool call' in processStreamingChunk() The defensive null-return behavior is preserved; only the log output is removed. --- src/core/assistant-message/NativeToolCallParser.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/assistant-message/NativeToolCallParser.ts b/src/core/assistant-message/NativeToolCallParser.ts index 72c34f94a0..e7b0067dd9 100644 --- a/src/core/assistant-message/NativeToolCallParser.ts +++ b/src/core/assistant-message/NativeToolCallParser.ts @@ -250,7 +250,6 @@ export class NativeToolCallParser { public static processStreamingChunk(id: string, chunk: string): ToolUse | null { const toolCall = this.streamingToolCalls.get(id) if (!toolCall) { - console.warn(`[NativeToolCallParser] Received chunk for unknown tool call: ${id}`) return null } @@ -295,7 +294,6 @@ export class NativeToolCallParser { public static finalizeStreamingToolCall(id: string): ToolUse | McpToolUse | null { const toolCall = this.streamingToolCalls.get(id) if (!toolCall) { - console.warn(`[NativeToolCallParser] Attempting to finalize unknown tool call: ${id}`) return null }