Skip to content

Commit f11788b

Browse files
committed
Reasoning messages are rendered with the markdown component and should
be cached Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent 5839b5f commit f11788b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/tui/components/messages/messages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func (m *model) shouldCacheMessage(index int) bool {
385385
return msg.ToolStatus == types.ToolStatusCompleted || msg.ToolStatus == types.ToolStatusError
386386
case types.MessageTypeToolResult:
387387
return true
388-
case types.MessageTypeAssistant:
388+
case types.MessageTypeAssistant, types.MessageTypeAssistantReasoning:
389389
// Only cache assistant messages that have content (completed streaming)
390390
// Empty assistant messages have spinners and need constant re-rendering
391391
return strings.Trim(msg.Content, "\r\n\t ") != ""

0 commit comments

Comments
 (0)