From 70ed19fcdb645840574aa445ce7feb36e3f81d22 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Tue, 13 Jan 2026 20:43:37 -0800 Subject: [PATCH] fix(chat): remove special handling for non-streaming (#2808) --- .../w/[workflowId]/components/chat/chat.tsx | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/chat.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/chat.tsx index feebe135e4..e67f92ab67 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/chat.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/chat/chat.tsx @@ -531,35 +531,6 @@ export function Chat() { return } - if ( - selectedOutputs.length > 0 && - 'logs' in result && - Array.isArray(result.logs) && - activeWorkflowId - ) { - const additionalOutputs: string[] = [] - - for (const outputId of selectedOutputs) { - const blockId = extractBlockIdFromOutputId(outputId) - const path = extractPathFromOutputId(outputId, blockId) - - if (path === 'content') continue - - const outputValue = extractOutputFromLogs(result.logs as BlockLog[], outputId) - if (outputValue !== undefined) { - const formattedValue = - typeof outputValue === 'string' ? outputValue : JSON.stringify(outputValue) - if (formattedValue) { - additionalOutputs.push(`**${path}:** ${formattedValue}`) - } - } - } - - if (additionalOutputs.length > 0) { - appendMessageContent(responseMessageId, `\n\n${additionalOutputs.join('\n\n')}`) - } - } - finalizeMessageStream(responseMessageId) } else if (contentChunk) { accumulatedContent += contentChunk