Browse Source

fix: collapsed tool calls hidden at times

adamdotdevin 6 tháng trước cách đây
mục cha
commit
7a67fe7dde
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/tui/internal/components/chat/messages.go

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

@@ -452,7 +452,7 @@ func (m *messagesComponent) renderView() tea.Cmd {
 						}
 
 						if finished {
-							key := m.cache.GenerateKey(casted.ID, part.Text, width, m.showToolDetails)
+							key := m.cache.GenerateKey(casted.ID, part.Text, width, m.showToolDetails, toolCallParts)
 							content, cached = m.cache.Get(key)
 							if !cached {
 								content = renderText(