summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tui.go b/tui.go
index 16d63e5..5e64e5e 100644
--- a/tui.go
+++ b/tui.go
@@ -450,6 +450,8 @@ func init() {
if event.Key() == tcell.KeyF2 {
// regen last msg
chatBody.Messages = chatBody.Messages[:len(chatBody.Messages)-1]
+ // there is no case where user msg is regenerated
+ // lastRole := chatBody.Messages[len(chatBody.Messages)-1].Role
textView.SetText(chatToText(cfg.ShowSys))
go chatRound("", cfg.UserRole, textView, true, false)
return nil