Skip to content

Add web and desktop push notification channels - #3081

Merged
SawyerHood merged 4 commits into
mainfrom
bb/support-additional-push-platforms-thr_2ymudqj3ku
Sep 4, 2026
Merged

SawyerHood merged 4 commits into
mainfrom
bb/support-additional-push-platforms-thr_2ymudqj3ku

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Sep 4, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The built-in Push notifications plugin only delivered through Expo to registered mobile devices. Browser and desktop users received no system notifications when threads needed attention, and there were no independent delivery switches.

What changed

Added separate mobile, web, and desktop settings, enabled by default. The existing coalesced sender broadcasts eligible notifications to connected web and desktop clients; an app-wide plugin component displays native system notifications and opens the thread on click. Browser permission is requested from a settings button. Multiple tabs/windows deduplicate notifications using Web Locks and local storage.

Added a settings test button and bb push-notifications test <web|desktop>, with a validated plugin RPC for SDK callers. Updated CLI guidance, configuration documentation, and the plugin overview. This uses existing plugin APIs and does not change the host daemon protocol.

Web delivery requires an open tab and permission; desktop delivery requires an open app window. Closed-app mobile push remains unchanged.

How you verified

  • pnpm exec turbo run typecheck test --filter=bb-plugin-push-notifications: passed, 17 tests. New regressions cover channel independence, delivery without a mobile subscription, stale/read thread suppression, RPC validation, permission behavior, deduplication, navigation, and cleanup.
  • bb plugin build plugins/push-notifications: server and app bundles compiled.
  • Fresh managed dev store with HTTP 200 app response and healthy server. Used Doobie for Chrome and Computer Use for Electron settings and toggles.
  • A real Codex completion produced native notifications in both Chrome and Electron, each reporting show without an error. Dispatched click events on the received notifications and verified both clients opened the correct thread; physical OS banner clicks were not tested.
  • Verified independent on/off settings, persistence, denied browser permission, and exactly one native notification across two Chrome tabs. Browser permissions were controlled through the isolated automation context. Windows/Linux, Safari, and actual mobile relay delivery were not exercised.

AGENT GENERATED

@SawyerHood
SawyerHood merged commit 7e527a9 into main Sep 4, 2026
16 checks passed
@SawyerHood
SawyerHood deleted the bb/support-additional-push-platforms-thr_2ymudqj3ku branch September 4, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant