Hopeful fix to race condition in tui's streamed response handling
This commit is contained in:
@@ -81,7 +81,6 @@ type Model struct {
|
||||
selectedMessage int
|
||||
editorTarget editorTarget
|
||||
stopSignal chan struct{}
|
||||
replyChan chan conversation.Message
|
||||
chatReplyChunks chan provider.Chunk
|
||||
persistence bool // whether we will save new messages in the conversation
|
||||
|
||||
@@ -134,8 +133,7 @@ func Chat(app *model.AppModel) *Model {
|
||||
persistence: true,
|
||||
|
||||
stopSignal: make(chan struct{}),
|
||||
replyChan: make(chan conversation.Message),
|
||||
chatReplyChunks: make(chan provider.Chunk),
|
||||
chatReplyChunks: make(chan provider.Chunk, 1),
|
||||
|
||||
wrap: true,
|
||||
selectedMessage: -1,
|
||||
|
||||
Reference in New Issue
Block a user