Skip to content

fix: todo of notification extension detection#1564

Open
sarthakNITT wants to merge 2 commits into
EpicenterHQ:mainfrom
sarthakNITT:feat/notification
Open

fix: todo of notification extension detection#1564
sarthakNITT wants to merge 2 commits into
EpicenterHQ:mainfrom
sarthakNITT:feat/notification

Conversation

@sarthakNITT

@sarthakNITT sarthakNITT commented Mar 25, 2026

Copy link
Copy Markdown

Replaces the detectExtensionstub with a real postMessage ping/pong posts whispering-extension-ping to the page and waits 200ms for a whispering-extension-pong reply from a content script, falling back to the browser Notification API if none arrives.

Follow-up: wiring the actual extension notification send path once a content script ships.

Closes #1563

Copilot AI review requested due to automatic review settings March 25, 2026 19:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Implements real browser-extension presence detection for the Whispering web notification service by using a postMessage ping/pong handshake, replacing the previous stubbed “always false” behavior.

Changes:

  • Add postMessage-based extension detection with a 200ms timeout in the web notification service.
  • Update bun.lock dependency resolutions (notably detect-libc entries).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
apps/whispering/src/lib/services/notifications/web.ts Replaces the extension-detection stub with a ping/pong postMessage mechanism.
bun.lock Updates lockfile entries related to detect-libc resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/whispering/src/lib/services/notifications/web.ts Outdated
Comment thread apps/whispering/src/lib/services/notifications/web.ts
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.

[TODO]: Implement real extension detection

2 participants