summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-01-17 13:03:30 +0300
committerGrail Finder <wohilas@gmail.com>2026-01-17 13:03:30 +0300
commit3e2a1b6f9975aaa2b9cb45bcb77aac146a37fd3c (patch)
tree04b45c7f86b70ae47491cb057521a8f9387fe5b1 /tui.go
parent0fb59210045792433a7a3796046c8383f2bb8824 (diff)
Fix: KnowTo is added only if tag present
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/tui.go b/tui.go
index aa9972a..8454d45 100644
--- a/tui.go
+++ b/tui.go
@@ -93,6 +93,7 @@ var (
[yellow]Alt+4[white]: edit msg role
[yellow]Alt+5[white]: toggle system and tool messages display
[yellow]Alt+6[white]: toggle status line visibility
+[yellow]Alt+7[white]: toggle role injection (inject role in messages)
[yellow]Alt+8[white]: show char img or last picked img
[yellow]Alt+9[white]: warm up (load) selected llama.cpp model
@@ -828,6 +829,18 @@ func init() {
}
updateStatusLine()
}
+ // Handle Alt+7 to toggle injectRole
+ if event.Key() == tcell.KeyRune && event.Rune() == '7' && event.Modifiers()&tcell.ModAlt != 0 {
+ injectRole = !injectRole
+ status := "disabled"
+ if injectRole {
+ status = "enabled"
+ }
+ if err := notifyUser("injectRole", fmt.Sprintf("Role injection %s", status)); err != nil {
+ logger.Error("failed to send notification", "error", err)
+ }
+ updateStatusLine()
+ }
if event.Key() == tcell.KeyF1 {
// chatList, err := loadHistoryChats()
chatList, err := store.GetChatByChar(cfg.AssistantRole)