From e43ddf0eaa78d1ffcddb4f09f2c69e7daadf584b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 25 Jul 2026 09:41:14 -0700 Subject: [PATCH] Say when there's no notification history to replay Replaying an empty history did nothing at all on screen, which reads as a dead keybinding rather than an empty log. Co-Authored-By: Claude Opus 5 (1M context) --- shell/plugins/notifications/Service.qml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/shell/plugins/notifications/Service.qml b/shell/plugins/notifications/Service.qml index 8d050350..c12d5eb7 100644 --- a/shell/plugins/notifications/Service.qml +++ b/shell/plugins/notifications/Service.qml @@ -331,7 +331,23 @@ Item { service.historyReplayLimit, NotificationUrgency.Normal) - if (rows.length === 0) return "none" + // Replaying nothing at all looks like a dead keybinding, so say so. + if (rows.length === 0) { + popupModel.insert(0, { + id: -1, + originalId: -1, + app: "omarchy-action", + appIcon: "", + summary: "No recent notifications", + body: "", + image: "", + glyph: "󰂚", + urgency: NotificationUrgency.Low, + expireTimeout: 0, + timestamp: Date.now() + }) + return "none" + } clearPopups() for (var i = 0; i < rows.length; i++) {