summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-05 14:38:33 -0500
committeradamdottv <[email protected]>2025-05-05 14:38:33 -0500
commitef298b2f181a1e27e2dd0d5c5f263851c4428f08 (patch)
treead217dd365523b88d5e0a7a3c775d2e439013098
parent3cc08494a56b30bab8663935eb158906a68bed20 (diff)
downloadopencode-ef298b2f181a1e27e2dd0d5c5f263851c4428f08.tar.gz
opencode-ef298b2f181a1e27e2dd0d5c5f263851c4428f08.zip
fix: hide empty messages
-rw-r--r--internal/tui/components/chat/message.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/tui/components/chat/message.go b/internal/tui/components/chat/message.go
index f5f50f03a..225e4c003 100644
--- a/internal/tui/components/chat/message.go
+++ b/internal/tui/components/chat/message.go
@@ -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()