diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-20 12:14:45 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-20 12:14:45 +0300 |
| commit | 35cc8c068f0883e685cef3824b0a238145c680a1 (patch) | |
| tree | 0d5727f4b458c15f3eacde8ce2d28d5d720ed0b3 | |
| parent | 27fdec13611a5757ff35e15606e939c4e15187cf (diff) | |
Fix: force update statusline on colorchange
| -rw-r--r-- | bot.go | 2 | ||||
| -rw-r--r-- | helpfuncs.go | 1 | ||||
| -rw-r--r-- | tui.go | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -456,6 +456,7 @@ func monitorModelLoad(modelID string) { if err := notifyUser("model loaded", "Model "+modelID+" is now loaded and ready."); err != nil { logger.Debug("failed to notify user", "error", err) } + refreshChatDisplay() return } } @@ -763,6 +764,7 @@ func chatWatcher(ctx context.Context) { func chatRound(r *models.ChatRoundReq) error { botRespMode = true + updateStatusLine() botPersona := cfg.AssistantRole if cfg.WriteNextMsgAsCompletionAgent != "" { botPersona = cfg.WriteNextMsgAsCompletionAgent diff --git a/helpfuncs.go b/helpfuncs.go index 194d5a9..5356472 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -61,6 +61,7 @@ func refreshChatDisplay() { displayText := chatToText(filteredMessages, cfg.ShowSys) textView.SetText(displayText) colorText() + updateStatusLine() if scrollToEndEnabled { textView.ScrollToEnd() } @@ -96,7 +96,7 @@ var ( [yellow]Alt+8[white]: show char img or last picked img [yellow]Alt+9[white]: warm up (load) selected llama.cpp model [yellow]Alt+t[white]: toggle thinking blocks visibility (collapse/expand <think> blocks) -[yellow]Alt+c[white]: show colorscheme selection popup +[yellow]Alt+i[white]: show colorscheme selection popup === scrolling chat window (some keys similar to vim) === [yellow]arrows up/down and j/k[white]: scroll up and down |
