You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(newsletter): stop dismissal re-pop loop and add DB write observability
The newsletter modal re-pops because the dismissal is never persisted when the
SQLite write fails silently. First step of #2321:
- setNewsletterDismissedAt now reports whether the dismissal was actually
persisted. The renderer suppresses the modal for the rest of the session only
when it wasn't — stopping the in-session re-pop loop on a read-only DB or a
failed write, while leaving the normal (persisted) flow unchanged.
- Instrument DB write failures in Sentry, separating Bucket A (read-only DB:
on-disk schema newer than the app, captured in the migrator with applied vs
known schema) from Bucket B (the write threw, captured with the SQLite error
code). os.name / release are attached automatically. Today these failures are
invisible — Bucket A doesn't even produce a local log.
Refs #2321
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments