diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-22 17:27:24 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-22 17:27:24 +0300 |
| commit | 9a727b21ad487d52dbf411ed54929505e7341c8b (patch) | |
| tree | 371900e2aceb68b5710d6d12598a687452aafa3a /helpfuncs.go | |
| parent | beb944c39069b4bb737084af5bab012ad0877209 (diff) | |
Enha: simplify status line
Diffstat (limited to 'helpfuncs.go')
| -rw-r--r-- | helpfuncs.go | 14 |
1 files changed, 9 insertions, 5 deletions
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 |
