From 37eb150535a82590be107ba6cac1de41a917deef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Mon, 15 Jun 2026 12:29:50 +0200 Subject: [PATCH] fix(ui): match severity gate case-insensitively The critical-event gate used a case-sensitive == "critical" where every other status/severity compare in the UI uses strings.EqualFold, so a daemon-side reword to a different case would silently drop the bypass. --- client/ui/tray_events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ui/tray_events.go b/client/ui/tray_events.go index 62f696886..8172e7060 100644 --- a/client/ui/tray_events.go +++ b/client/ui/tray_events.go @@ -53,7 +53,7 @@ func (t *Tray) onSystemEvent(ev *application.CustomEvent) { return } - critical := se.Severity == "critical" + critical := strings.EqualFold(se.Severity, "critical") t.profileMu.Lock() enabled := t.notificationsEnabled t.profileMu.Unlock()