From 6f4f8cfad2d2374cac16947748bebbb9d53d616b Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan <33737564+Sg312@users.noreply.github.com> Date: Thu, 13 Nov 2025 15:27:15 -0800 Subject: [PATCH] fix(executor): streaming response format (#1972) --- apps/sim/executor/execution/block-executor.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/sim/executor/execution/block-executor.ts b/apps/sim/executor/execution/block-executor.ts index fd93d1126..618f48224 100644 --- a/apps/sim/executor/execution/block-executor.ts +++ b/apps/sim/executor/execution/block-executor.ts @@ -565,7 +565,15 @@ export class BlockExecutor { if (responseFormat) { try { const parsed = JSON.parse(fullContent.trim()) - Object.assign(executionOutput, parsed) + + streamingExec.execution.output = { + ...parsed, + tokens: executionOutput.tokens, + toolCalls: executionOutput.toolCalls, + providerTiming: executionOutput.providerTiming, + cost: executionOutput.cost, + model: executionOutput.model, + } return } catch (error) { logger.warn('Failed to parse streamed content for response format', { blockId, error })