From 9a727b21ad487d52dbf411ed54929505e7341c8b Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 22 Feb 2026 17:27:24 +0300 Subject: Enha: simplify status line --- helpfuncs.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'helpfuncs.go') diff --git a/helpfuncs.go b/helpfuncs.go index d407d1e..9a3255f 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -354,13 +354,17 @@ func makeStatusLine() string { } // Get model color based on load status for local llama.cpp models modelColor := getModelColor() - statusLine := fmt.Sprintf(statusLineTempl, boolColors[botRespMode], botRespMode, activeChatName, - boolColors[cfg.ToolUse], cfg.ToolUse, modelColor, chatBody.Model, boolColors[cfg.SkipLLMResp], - cfg.SkipLLMResp, cfg.CurrentAPI, boolColors[isRecording], isRecording, persona, - botPersona) + statusLine := fmt.Sprintf(statusLineTempl, boolColors[botRespMode], activeChatName, + boolColors[cfg.ToolUse], modelColor, chatBody.Model, boolColors[cfg.SkipLLMResp], + cfg.CurrentAPI, persona, botPersona) + if cfg.STT_ENABLED { + recordingS := fmt.Sprintf(" | [%s:-:b]voice recording[-:-:-] (ctrl+r)", + boolColors[isRecording]) + statusLine += recordingS + } // completion endpoint if !strings.Contains(cfg.CurrentAPI, "chat") { - roleInject := fmt.Sprintf(" | role injection [%s:-:b]%v[-:-:-] (alt+7)", boolColors[injectRole], injectRole) + roleInject := fmt.Sprintf(" | [%s:-:b]role injection[-:-:-] (alt+7)", boolColors[injectRole]) statusLine += roleInject } return statusLine + imageInfo + shellModeInfo -- cgit v1.2.3