Skip to content

fix: honor "pipe notifications" toggle on /notify route#3880

Merged
louis030195 merged 1 commit into
screenpipe:mainfrom
Anshgrover23:fix/pipe-notifications-toggle-gating
Jun 6, 2026
Merged

fix: honor "pipe notifications" toggle on /notify route#3880
louis030195 merged 1 commit into
screenpipe:mainfrom
Anshgrover23:fix/pipe-notifications-toggle-gating

Conversation

@Anshgrover23

@Anshgrover23 Anshgrover23 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Description:

Fixes #3879

  • before: when notification pipes toggle is off: system and pipes both notification working and i.e. wrong/bug.
Screen.Recording.2026-06-06.at.6.25.21.PM.mov
  • after: Shown demo of pipes and system both notification working when toogle on & when notification toggle off only system notification will work.
Screen.Recording.2026-06-06.at.6.17.07.PM.mov
  • tests passing:
image

The Pipe notifications toggle in Settings → Notifications was ignored — pipes POSTing to localhost:11435/notify always showed the native panel; this PR gates the /notify route on notificationPrefs.pipeNotifications (matching the display-change path), so turning the toggle off now actually suppresses pipe alerts.

POST /notify previously ignored notificationPrefs.pipeNotifications and
always showed the SwiftUI panel + wrote to history. Now mirrors the
display-change path in monitor_events.rs: reads the setting from
SettingsStore, fails open on missing/parse errors, and when the toggle
is off + type=pipe, logs 'notify: skipped (pipe notifications disabled)'
and returns 200 without showing or persisting. Type=system and other
upstream-gated paths pass through unchanged.

Includes 6 unit tests covering the gate semantics.

@louis030195 louis030195 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm, clean fix

generated by the screenpipe pr-review pipe (https://screenpi.pe), not written by a human — reply and tag @louis030195 if it got something wrong.

@Anshgrover23 Anshgrover23 requested a review from louis030195 June 6, 2026 15:03
@Anshgrover23

Copy link
Copy Markdown
Contributor Author

@louis030195 Can I get a review on this one ?

@louis030195 louis030195 merged commit 87ea9f3 into screenpipe:main Jun 6, 2026
11 checks passed
louis030195 pushed a commit that referenced this pull request Jun 6, 2026
…ate skips it

#3880 gates type:"pipe" notifications behind notificationPrefs.pipeNotifications.
The auto-update "what's new" toast POSTed to /notify with no type, which the
route defaults to "pipe" — so it would be wrongly suppressed when a user turns
off Pipe notifications, even though app updates have their own appUpdates toggle.
Tag it "app-update" to keep the two classes decoupled.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

[bug] "Pipe notifications" toggle off - pipe alerts still shown via native notification panel

2 participants