summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-03 12:37:13 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-03 12:37:13 +0300
commit3c70f0e10421861ee8cf4fbf00ccbf4b588b35ff (patch)
treef0fd5cb0491a8812e41c521375a299cffef59015 /tui.go
parent2b009259ab3e6ab01c5af5930957a2b280fab1a3 (diff)
Chore: no chats notification
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go8
1 files changed, 8 insertions, 0 deletions
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 {