瀏覽代碼

ignore: tweak

Dax Raad 1 年之前
父節點
當前提交
081f100c93
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      packages/tui/internal/components/chat/messages.go

+ 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