summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-07-28 12:20:37 -0400
committerDax Raad <[email protected]>2025-07-28 12:20:37 -0400
commit081f100c93a3570f53a996187ea0a52b277f2f20 (patch)
tree8e2f904e7d4153b0f29f2b47650ec097386d5ed5
parentf2bdb8159fb672763efab31f71c2c25d35057ca8 (diff)
downloadopencode-081f100c93a3570f53a996187ea0a52b277f2f20.tar.gz
opencode-081f100c93a3570f53a996187ea0a52b277f2f20.zip
ignore: tweak
-rw-r--r--packages/tui/internal/components/chat/messages.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/tui/internal/components/chat/messages.go b/packages/tui/internal/components/chat/messages.go
index a10c13a0f..098a329ba 100644
--- a/packages/tui/internal/components/chat/messages.go
+++ b/packages/tui/internal/components/chat/messages.go
@@ -368,7 +368,7 @@ func (m *messagesComponent) renderView() tea.Cmd {
if reverted {
continue
}
- if part.Text == "" {
+ if strings.TrimSpace(part.Text) == "" {
continue
}
hasTextPart = true