From 3e2a1b6f9975aaa2b9cb45bcb77aac146a37fd3c Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 17 Jan 2026 13:03:30 +0300 Subject: Fix: KnowTo is added only if tag present --- tui.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tui.go') 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) -- cgit v1.2.3