From d2fc83559c4616d74e847770373b2da88b63cba3 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Jan 2026 15:08:20 +0000 Subject: [PATCH] Fix macOS notifications to display as toast popups Add UNNotificationPresentationOptions::Banner and Badge flags to notification presentation options in macos.rs. This ensures that OSC 9 escape code notifications and window:toast_notification() calls display as visible toast popups on macOS with badge indicators, not just entries in the Notification Center. Fixes issue where notifications were only shown in Notification Center with sound, but no visible banner popup appeared. Thanks to @joshuataylor for identifying the issue and suggesting the fix: https://github.com/wezterm/wezterm/issues/5476#issuecomment-3652352095 Fixes #5476 --- wezterm-toast-notification/src/macos.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wezterm-toast-notification/src/macos.rs b/wezterm-toast-notification/src/macos.rs index b144692d0..1dfba50a6 100644 --- a/wezterm-toast-notification/src/macos.rs +++ b/wezterm-toast-notification/src/macos.rs @@ -47,8 +47,10 @@ define_class!( completion_handler: &block2::Block, ) { log::debug!("will_present"); - let options = - UNNotificationPresentationOptions::List | UNNotificationPresentationOptions::Sound; + let options = UNNotificationPresentationOptions::List + | UNNotificationPresentationOptions::Sound + | UNNotificationPresentationOptions::Badge + | UNNotificationPresentationOptions::Banner; completion_handler.call((options,)); }