From 3c70f0e10421861ee8cf4fbf00ccbf4b588b35ff Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Wed, 3 Dec 2025 12:37:13 +0300 Subject: Chore: no chats notification --- tui.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tui.go') diff --git a/tui.go b/tui.go index cf2692f..65cd2d0 100644 --- a/tui.go +++ b/tui.go @@ -772,6 +772,14 @@ func init() { logger.Error("failed to load chat history", "error", err) return nil } + // Check if there are no chats for this agent + if len(chatList) == 0 { + notification := fmt.Sprintf("no chats found for agent: %s", cfg.AssistantRole) + if err := notifyUser("info", notification); err != nil { + logger.Error("failed to send notification", "error", err) + } + return nil + } chatMap := make(map[string]models.Chat) // nameList := make([]string, len(chatList)) for _, chat := range chatList { -- cgit v1.2.3