Skip to content

[2189 by GPT-5.6 Sol] Fix desktop notification settings invoking unsupported service workers - #2194

Merged
integry merged 1 commit into
1950-epic-cross-platform-dskfrom
2189/gpt-5.6-sol-fix-desktop-notification--20260907-1839-fet
Sep 7, 2026
Merged

integry merged 1 commit into
1950-epic-cross-platform-dskfrom
2189/gpt-5.6-sol-fix-desktop-notification--20260907-1839-fet

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2189

Branch: 2189/gpt-5.6-sol-fix-desktop-notification--20260907-1839-fet
Commits: ✅ Changes committed (31309cc)


AI Processing Completed

Execution Details:

Summary:
Implemented the desktop Web Push correction.

Key changes:

  • Service-worker lookup and registration now require a secure http: or https: origin, preventing API calls on propr-app:.
  • Push subscription and permission paths are gated before browser APIs are invoked.
  • Desktop settings truthfully state that Browser Web Push is unavailable and native desktop notifications are not implemented.
  • VAPID warnings now appear only for capable browser origins.
  • Personal preferences, inbox notifications, badges, quiet hours, and other channels remain visible and editable.
  • Added regressions for propr-app:, HTTPS configured/unconfigured states, unsupported APIs, permission safety, and rendered desktop settings.

Validation:

  • Focused tests: 25 passed
  • Full UI suite: 677 passed
  • UI lint and TypeScript checks passed
  • Web and desktop renderer production builds passed
  • Visual preview evidence generated in .propr/previews/

Detailed Logs:

  • Conversation: 71 messages
  • Session: 01a07d2b-b039-7ce0-9426-c1d0ea4fef11

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2189-2026-09-07T18-54-12-655Z-conversation.json
  • output: /tmp/claude-logs/issue-2189-2026-09-07T18-54-12-655Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #2189.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Desktop notification settings

Desktop notification settings

Personal notification settings truthfully report that Browser Web Push and native desktop notifications are unavailable while preserving inbox, push-category, badge, and quiet-hours preferences.

…king unsuppo

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=9 max=2

@propr-dev propr-dev Bot added the ultrafix label Sep 7, 2026
@propr-dev

propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 9/10, max cycles: 2)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/review

@integry integry left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Root independent integrated check at merged-ref 0c8d317: all 25 focused service-worker, push-hook and rendered notification-settings tests pass. Inspected production changes: unsupported propr-app origin is rejected before getRegistration/register/subscription access, secure HTTP(S) browser support remains, unsupported client capability takes precedence over VAPID configuration guidance, and personal inbox/preferences remain available. Native-notifications implementation #2192 has been told to replace the temporary not-implemented message when it integrates. Strict full UI lint is running.

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry integry left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Strict full UI lint (--max-warnings 0) passes on the integrated candidate. Root viewed the attached rendered desktop notification-settings preview: unsupported browser push is explained without the service-worker exception or misleading VAPID instruction, and personal/inbox preferences remain visible. The preview is fixture-backed, not yet a replaced live desktop build.

@propr-dev

propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

This PR is ready to merge within scope, subject to the pending checks completing successfully. It correctly prevents Web Push operations on the propr-app: desktop origin while preserving notification preferences and inbox functionality.

✅ Safe origin gating — serviceWorkerRegistration.ts requires both a supported HTTP(S) protocol and a secure context before invoking service-worker methods.

✅ Accurate desktop guidance — NotificationSettingsSection.tsx prioritizes desktop-unavailability messaging over irrelevant VAPID configuration warnings.

✅ Focused regression coverage — Tests cover unsupported desktop origins, missing browser APIs, configured and unconfigured VAPID states, and permission-prompt avoidance.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

No suggestions.

Score

The implementation is well-scoped, internally consistent, and thoroughly tested for the changed behavior. No current check has failed, although several checks remain pending.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 1m 22s
  • Tokens: 38,937 (36,668 in / 2,269 out)
  • Cost: $0.25

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry integry left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Integration decision: Ultrafix review 5574668631 scores 9/10 with no blockers; current-head CI build/lint passes. Root strict UI lint, 25 focused regressions and full integrated UI suite pass, and attached rendered settings preview inspected. Six changed files are confined to UI origin-capability handling, settings presentation and tests; no native/backend code changes. Long-running full-suite/package CI remains pending and is not claimed passed. Integrating the user-reported desktop Web Push correction into the epic; native notification implementation #2192 will replace the temporary unavailable notice. No main merge.

@integry
integry merged commit ac1aec0 into 1950-epic-cross-platform-dsk Sep 7, 2026
39 of 44 checks passed
propr-dev Bot pushed a commit that referenced this pull request Sep 7, 2026
…ing:

Implemented the focused PR #2197 follow-ups without committing:

- Integrated the desktop epic containing merged PR #2194, resolving preload and startup-policy overlaps.
- Revalidated native notification preferences at batch flush time, excluding newly disabled event kinds from delivery and grouped counts.
- Added regressions for disabled queued failures and mixed grouped batches.
- Updated Browser push guidance to direct desktop users to the Desktop notifications section while preserving custom-origin gates.
- Generated focused visual preview evidence.

Validation passed:

- Desktop typecheck
- UI typecheck
- Full desktop suite: 659 passed, 27 platform-specific skips
- Browser push/service-worker regressions: 25 passed
- Focused integration tests: 30 passed
- Production desktop renderer build
- Focused UI lint and `git diff --check`

PR: #2197
Comment by: @integry (ID: 5574794108)
Comment by: @integry (ID: 5574810944)
Model: gpt-5.6-sol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant