From 96353113ab44993b8c0f000049b699ad96aa534c Mon Sep 17 00:00:00 2001 From: tauraamui Date: Thu, 20 Nov 2025 16:28:09 +0000 Subject: [PATCH] fix: log out query failure error and otherwise ignore it --- internal/tui/components/chat/editor/editor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/tui/components/chat/editor/editor.go b/internal/tui/components/chat/editor/editor.go index 4da6ec84e56e2350f846e777175ab503d3f77437..6c2766b85077c08b45efc049fdb73f7973a767c0 100644 --- a/internal/tui/components/chat/editor/editor.go +++ b/internal/tui/components/chat/editor/editor.go @@ -3,6 +3,7 @@ package editor import ( "context" "fmt" + "log/slog" "math/rand" "net/http" "os" @@ -199,8 +200,8 @@ func (m *editorCmp) Update(msg tea.Msg) (util.Model, tea.Cmd) { } msgs, err := m.getUserMessagesAsText() if err != nil { - // TODO(tauraamui): handle error for loading history better in the UI later - panic(err) + slog.Error("failed to acquire all sessions message history", "error", err) + return m, nil } if len(msgs) == 0 { break