Skip to content

Commit 34e5b87

Browse files
authored
Merge pull request #651 from rumpl/cache-reasoning
Reasoning messages are rendered with the markdown component and should
2 parents 5839b5f + f11788b commit 34e5b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)