Skip to content

macOS notification clicks do not route to the target message #3509

Open

Description

@Dhaiwat10

Describe the bug
On macOS, clicking an actionable notification (eg. new message in a chat) re-focuses Buzz but does not route the UI properly to the specific message. Buzz remains in the channel that was open before the click.

Steps to reproduce

  1. Prompt an agent in channel X.
  2. Switch to channel Y before generation completes.
  3. Focus another macOS application.
  4. Wait for the completion notification.
  5. Click the notification body.

Expected behavior
Buzz should activate, open channel X, and navigate to the generated message.

Version and platform
Buzz version: 0.4.26
OS: macOS 27.0.0

Logs / additional context
No error is shown. The notification target is sent as Tauri extra metadata, but the macOS notification backend does not return that metadata with the click action.

Activity

  1. iroiro147 commented on Jul 31, 2026

    @iroiro147
    Contributor

    Plan to take this. The reporter's diagnosis (macOS backend drops the extra metadata, so the click action can't carry the target) matches what I'm seeing in desktop/src/features/notifications/lib/desktop.ts — the plugin's onAction JS callback is Linux-proven, and on macOS we never get the target back into the router.

    I'll extend the existing native-notification bridge (already used on Linux for exactly this) to carry the target through the same native-notification-activated event on macOS, keeping the window-focus path frontend-owned, with a regression test covering the click→route round-trip. PR to follow against main shortly.

  2. iroiro147 commented on Jul 31, 2026

    @iroiro147
    Contributor

    Taking this one. The reporter's diagnosis is right: on macOS the Tauri notification plugin's JS-side onAction never delivers the extra metadata back, so the router never learns the click target.

    The Linux path already solves exactly this with a backend wait_for_action that re-emits the opaque target over native-notification-activated; the frontend just focuses the window when it arrives. I'll extend that same bridge to macOS (target already travels as an opaque JSON value through the show_native_notification command), add a regression test that pins the click→target round-trip, and open a PR against main. ETA shortly.

  3. iroiro147 commented on Jul 31, 2026

    @iroiro147
    Contributor

    Correction: I missed PR #3510 (#3510, by @Dhaiwat10) during the initial census; it already covers this scope — macOS native-notification bridge, target routing, Cargo changes, and a regression test. I'm standing down and will not open a duplicate PR. My earlier claim/intent comments on this issue should be disregarded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions