From bc8a6547f521b83989702bd9279099b2153c9578 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Sat, 6 Jun 2026 16:35:35 +0800 Subject: [PATCH] fix(desktop): log notification delivery failures --- desktop/src/notifications.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/src/notifications.ts b/desktop/src/notifications.ts index 2fda51e50..d7bf93507 100644 --- a/desktop/src/notifications.ts +++ b/desktop/src/notifications.ts @@ -115,6 +115,9 @@ function showDesktopNotification( body: notificationBody(frame.text), subtitle: "nanobot", }); + notification.on("failed", (_event, error) => { + console.warn(`[nanobot] Desktop notification failed: ${error}`); + }); notification.on("click", () => openChatFromNotification(frame.chat_id, options)); notification.show(); unreadNotificationCount += 1;