Skip to content

Fix Web Push offline retention and subscription loss - #70

Open
joan-code6 wants to merge 1 commit into
mainfrom
fix/web-push-reliability
Open

joan-code6 wants to merge 1 commit into
mainfrom
fix/web-push-reliability

Conversation

@joan-code6

@joan-code6 joan-code6 commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Web Push currently inherits pywebpush's TTL=0, so a push service can accept a message and discard it immediately when the recipient is unavailable. Local signing/configuration exceptions can also delete valid browser subscriptions as if they had expired.

Set retention to 24 hours for messages, one hour for plan changes and ten minutes for test pushes. Remove subscriptions only on explicit push-service 404/410 responses; keep local and transient failures retryable. Document persistent data/key requirements and the session-ownership migration that requires browsers to re-register older endpoints.

Validation: 60 focused notification, authentication recovery, session revocation and dashboard tests pass. Coverage includes a fresh-process SQLite restart, persisted pending deliveries, real pywebpush encryption and outgoing TTL headers against a simulated service, and recovery after signing failure. Fatal-error Ruff checks pass. No production deployment or live push-provider delivery was performed.

Companion browser registration recovery: joan-code6/lanis_ui#99

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T18:58:50.857014Z b001b08 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 009999da-05ff-49d0-916f-465e9bec3dd8
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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