mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-30 13:51:48 +08:00
fix: hide empty messages
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user