summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-12 16:49:29 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-12 16:49:29 +0300
commit10b665813e7116fa5310740e76951497ccbaaa2f (patch)
tree9dffc194a239b09105a2b9fc7b557c593c12f7bf /tui.go
parent8c3c2b9b23a5b41e207d5771bb365e2c391ed0ea (diff)
Fix: avoid sending regen while bot responding
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tui.go b/tui.go
index b5480ed..a4f9728 100644
--- a/tui.go
+++ b/tui.go
@@ -858,7 +858,7 @@ func init() {
updateStatusLine()
return nil
}
- if event.Key() == tcell.KeyF2 {
+ if event.Key() == tcell.KeyF2 && !botRespMode {
// regen last msg
if len(chatBody.Messages) == 0 {
if err := notifyUser("info", "no messages to regenerate"); err != nil {