Fix: avoid sending regen while bot responding

This commit is contained in:
Grail Finder
2026-02-12 16:49:29 +03:00
parent 8c3c2b9b23
commit 10b665813e

2
tui.go
View File

@@ -858,7 +858,7 @@ func init() {
updateStatusLine() updateStatusLine()
return nil return nil
} }
if event.Key() == tcell.KeyF2 { if event.Key() == tcell.KeyF2 && !botRespMode {
// regen last msg // regen last msg
if len(chatBody.Messages) == 0 { if len(chatBody.Messages) == 0 {
if err := notifyUser("info", "no messages to regenerate"); err != nil { if err := notifyUser("info", "no messages to regenerate"); err != nil {