From 98138728542d0ed529d9d3a389c3531945d971f3 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 22 Jan 2026 09:29:56 +0300 Subject: Chore: bool colors for statusline --- bot.go | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'bot.go') diff --git a/bot.go b/bot.go index 112af07..cd35445 100644 --- a/bot.go +++ b/bot.go @@ -35,19 +35,18 @@ var ( logLevel = new(slog.LevelVar) ) var ( - activeChatName string - chunkChan = make(chan string, 10) - openAIToolChan = make(chan string, 10) - streamDone = make(chan bool, 1) - chatBody *models.ChatBody - store storage.FullRepo - defaultFirstMsg = "Hello! What can I do for you?" - defaultStarter = []models.RoleMsg{} - defaultStarterBytes = []byte{} - interruptResp = false - ragger *rag.RAG - chunkParser ChunkParser - lastToolCall *models.FuncCall + activeChatName string + chunkChan = make(chan string, 10) + openAIToolChan = make(chan string, 10) + streamDone = make(chan bool, 1) + chatBody *models.ChatBody + store storage.FullRepo + defaultFirstMsg = "Hello! What can I do for you?" + defaultStarter = []models.RoleMsg{} + interruptResp = false + ragger *rag.RAG + chunkParser ChunkParser + lastToolCall *models.FuncCall //nolint:unused // TTS_ENABLED conditionally uses this orator Orator asr STT @@ -1170,11 +1169,6 @@ func init() { slog.Error("failed to open log file", "error", err, "filename", cfg.LogFile) return } - defaultStarterBytes, err = json.Marshal(defaultStarter) - if err != nil { - slog.Error("failed to marshal defaultStarter", "error", err) - return - } // load cards basicCard.Role = cfg.AssistantRole // toolCard.Role = cfg.AssistantRole -- cgit v1.2.3