summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-12 18:16:53 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-12 18:16:53 +0300
commit987d5842a430842e1408e94b7646f59fd3a3cc88 (patch)
treeb71fcdc950aee396a006328c2e3237316f5cdcd3 /tui.go
parent10b665813e7116fa5310740e76951497ccbaaa2f (diff)
Enha: tts.done on regen or deleteHEADmaster
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tui.go b/tui.go
index a4f9728..31f4091 100644
--- a/tui.go
+++ b/tui.go
@@ -871,6 +871,9 @@ func init() {
// lastRole := chatBody.Messages[len(chatBody.Messages)-1].Role
textView.SetText(chatToText(chatBody.Messages, cfg.ShowSys))
// go chatRound("", cfg.UserRole, textView, true, false)
+ if cfg.TTS_ENABLED {
+ TTSDoneChan <- true
+ }
chatRoundChan <- &models.ChatRoundReq{Role: cfg.UserRole, Regen: true}
return nil
}
@@ -893,6 +896,9 @@ func init() {
}
chatBody.Messages = chatBody.Messages[:len(chatBody.Messages)-1]
textView.SetText(chatToText(chatBody.Messages, cfg.ShowSys))
+ if cfg.TTS_ENABLED {
+ TTSDoneChan <- true
+ }
colorText()
return nil
}