Skip to content

Commit 6dc3fa6

Browse files
committed
fix(chat): drop dead thinking-channel ternary after lanes skip thinking blocks
1 parent 521d316 commit 6dc3fa6

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,9 @@ function parseBlocksWithSpanTree(blocks: ContentBlock[]): MessageSegment[] {
377377
}
378378
if (!g) continue
379379
g.isDelegating = false
380-
appendTextItem(
381-
g,
382-
block.content,
383-
block.type === 'subagent_thinking' ? 'thinking' : 'assistant',
384-
lastNarrationChannel
385-
)
380+
// Thinking blocks are skipped above (lanes render them separately), so
381+
// everything reaching this append is assistant narration.
382+
appendTextItem(g, block.content, 'assistant', lastNarrationChannel)
386383
continue
387384
}
388385

@@ -623,12 +620,9 @@ function parseBlocksLegacy(blocks: ContentBlock[]): MessageSegment[] {
623620
const g = findGroupForSubagentChunk(block.parentToolCallId)
624621
if (!g) continue
625622
g.isDelegating = false
626-
appendTextItem(
627-
g,
628-
block.content,
629-
block.type === 'subagent_thinking' ? 'thinking' : 'assistant',
630-
lastNarrationChannel
631-
)
623+
// Thinking blocks are skipped above (lanes render them separately), so
624+
// everything reaching this append is assistant narration.
625+
appendTextItem(g, block.content, 'assistant', lastNarrationChannel)
632626
continue
633627
}
634628

0 commit comments

Comments
 (0)