Browse Source

ignore: tweak

Dax Raad 1 năm trước cách đây
mục cha
commit
081f100c93

+ 1 - 1
packages/tui/internal/components/chat/messages.go

@@ -368,7 +368,7 @@ func (m *messagesComponent) renderView() tea.Cmd {
 						if reverted {
 						if reverted {
 							continue
 							continue
 						}
 						}
-						if part.Text == "" {
+						if strings.TrimSpace(part.Text) == "" {
 							continue
 							continue
 						}
 						}
 						hasTextPart = true
 						hasTextPart = true