From 916095fa02ee1edb5d068c5ff529b1aba9b8f1cf Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Tue, 13 Jan 2026 20:37:31 -0800 Subject: [PATCH] fix(chat): remove special handling for non-streaming --- .../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