From 6525388d818b54c8366e198e4b46d06232b44fcc Mon Sep 17 00:00:00 2001 From: Zamil Majdy Date: Tue, 27 Jan 2026 14:39:59 -0600 Subject: [PATCH] Revert "debug(chat): add logging for operation deduplication" This reverts commit 756ce4b95178217912d4be6502e5fa3a0f78012b. --- .../ChatContainer/useChatContainer.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/autogpt_platform/frontend/src/components/contextual/Chat/components/ChatContainer/useChatContainer.ts b/autogpt_platform/frontend/src/components/contextual/Chat/components/ChatContainer/useChatContainer.ts index bab68813ba..2f0440593d 100644 --- a/autogpt_platform/frontend/src/components/contextual/Chat/components/ChatContainer/useChatContainer.ts +++ b/autogpt_platform/frontend/src/components/contextual/Chat/components/ChatContainer/useChatContainer.ts @@ -104,26 +104,6 @@ export function useChatContainer({ } } - // Debug: Log operation filtering when relevant - const operationMsgs = messages.filter( - (m) => - m.type === "operation_started" || - m.type === "operation_pending" || - m.type === "operation_in_progress", - ); - if (operationMsgs.length > 0) { - console.info("[useChatContainer] Operation deduplication check:", { - completedToolIds: Array.from(completedToolIds), - localOperations: operationMsgs.map((m) => ({ - type: m.type, - toolId: (m as any).toolId, - toolName: (m as any).toolName, - })), - initialMessagesCount: initialMessages.length, - processedInitialCount: processedInitial.length, - }); - } - // Filter local messages to remove operation messages for completed tools const filteredLocalMessages = messages.filter((msg) => { if (