From 160d33573e4fbf075bfe09a91b04dcc189a66803 Mon Sep 17 00:00:00 2001 From: Narutama Aurum Date: Tue, 9 Jun 2026 09:52:34 +0800 Subject: [PATCH] fix: remove debug console.log statements from ai-chat-panel.tsx Addresses issue #459 - removes two leftover debug logs that leaked tool-call data in production: 1. Line 176: "[AIChatPanel] Tool parts in last message" 2. Line 302: "[AIChatPanel] Executed tool..." --- modules/playground/components/ai-chat-panel.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/playground/components/ai-chat-panel.tsx b/modules/playground/components/ai-chat-panel.tsx index dfc86196..9f0572a6 100644 --- a/modules/playground/components/ai-chat-panel.tsx +++ b/modules/playground/components/ai-chat-panel.tsx @@ -173,7 +173,6 @@ export default function AIChatPanel({ if (rawParts.length > 0) { const toolParts = rawParts.filter((p) => typeof (p as Record).type === "string" && ((p as Record).type as string).startsWith("tool-")); if (toolParts.length > 0) { - console.log("[AIChatPanel] Tool parts in last message:", JSON.stringify(toolParts, null, 2)); } } @@ -299,7 +298,6 @@ export default function AIChatPanel({ // Mark as processed BEFORE calling addToolResult to prevent re-execution on re-render processedToolCallIds.current.add(toolCallId); - console.log(`[AIChatPanel] Executed tool ${toolName} (${toolCallId}), result:`, result.slice(0, 100)); addToolResult({ toolCallId,