diff --git a/web/src/chat/normalize.ts b/web/src/chat/normalize.ts index f661fc04..16107c1c 100644 --- a/web/src/chat/normalize.ts +++ b/web/src/chat/normalize.ts @@ -116,6 +116,10 @@ function normalizeAssistantOutput( blocks.push({ type: 'text', text: block.text, uuid, parentUUID }) continue } + if (block.type === 'thinking' && typeof block.thinking === 'string') { + blocks.push({ type: 'reasoning', text: block.thinking, uuid, parentUUID }) + continue + } if (block.type === 'tool_use' && typeof block.id === 'string') { const name = asString(block.name) ?? 'Tool' const input = 'input' in block ? (block as Record).input : undefined