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

@@ -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,