Private
Public Access
1
0

Hopeful fix to race condition in tui's streamed response handling

This commit is contained in:
2024-12-11 07:17:53 +00:00
parent f05e2e30f7
commit 1996300c40
3 changed files with 12 additions and 3 deletions

View File

@@ -108,6 +108,7 @@ func (m *Model) Update(msg tea.Msg) (shared.ViewModel, tea.Cmd) {
cmds = append(cmds, m.waitForResponseChunk()) // wait for the next chunk
if msg.Content == "" {
// skip empty chunks
break
}