Hopeful fix to race condition in tui's streamed response handling
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user