fix: hide empty messages

This commit is contained in:
adamdottv
2025-05-05 14:38:33 -05:00
parent 63698e1c31
commit bc15aeec4f
+1 -1
View File
@@ -137,7 +137,7 @@ func renderAssistantMessage(
showToolMessages bool,
) []uiMessage {
messages := []uiMessage{}
content := msg.Content().String()
content := strings.TrimSpace(msg.Content().String())
thinking := msg.IsThinking()
thinkingContent := msg.ReasoningContent().Thinking
finished := msg.IsFinished()