MessageWeave/docs
anonsaber d452f95485 fix(push): PUSH_SUBSCRIPTION_SECONDS 300→WEEK (604800)
Root cause of push notifications failing while cron works:
- Stalwart sends the verification request (RFC 8620 §7.2) once at
  subscription creation; event pushes (§7.3) arrive without
  verificationCode and rely on dedup_exists("push:subscription:{id}")
  to confirm prior verification.
- TTL was 300s (5 min): key expired → every event push 401'd.
- Cron path bypasses this key entirely (polls /changes directly),
  which is why cron-delivered emails still arrived.

Fix: align with PUSH_REGISTRATION_SECONDS (1 week). Stalwart does not
re-verify; the key must survive restarts and any gap between
subscription creation and events.

Also fixes: removed fictional push:subscription-code:{code} from
opengaps TTL table (no such key exists in code); corrected
reference.md caller from register_push→jmap_push verification path;
fixed 前→EX typo in reference.zh-CN.md; design.md updated with
fifth 'why' bullet and historical context.
2026-10-12 23:42:28 +08:00
..
charter.md fix: reconcile lock robustness — TTL 300s→60s, heartbeat 90s→30s, renewal interval 10s 2026-10-12 22:03:11 +08:00
charter.zh-CN.md fix: reconcile lock robustness — TTL 300s→60s, heartbeat 90s→30s, renewal interval 10s 2026-10-12 22:03:11 +08:00
design.md fix(push): PUSH_SUBSCRIPTION_SECONDS 300→WEEK (604800) 2026-10-12 23:42:28 +08:00
design.zh-CN.md fix(push): PUSH_SUBSCRIPTION_SECONDS 300→WEEK (604800) 2026-10-12 23:42:28 +08:00
opengaps.md fix(push): PUSH_SUBSCRIPTION_SECONDS 300→WEEK (604800) 2026-10-12 23:42:28 +08:00
opengaps.zh-CN.md fix(push): PUSH_SUBSCRIPTION_SECONDS 300→WEEK (604800) 2026-10-12 23:42:28 +08:00
reference.md fix(push): PUSH_SUBSCRIPTION_SECONDS 300→WEEK (604800) 2026-10-12 23:42:28 +08:00
reference.zh-CN.md fix(push): PUSH_SUBSCRIPTION_SECONDS 300→WEEK (604800) 2026-10-12 23:42:28 +08:00
retired.md feat: immediate push trigger + inline /help + RFC 8620 push verification fix 2026-10-12 22:18:29 +08:00
retired.zh-CN.md feat: immediate push trigger + inline /help + RFC 8620 push verification fix 2026-10-12 22:18:29 +08:00