Files
Khaled AhmedandKhaled Ahmed 2fb2c0ad28 fix(shell): keep a dismissed update toast dismissed (#73)
The OMP update check re-runs on every visibilitychange back to the tab
(AppShell bumps updateCheckKey), and every successful check re-raised the
toast — so closing "OMP update available" and switching tabs brought it
straight back. Nothing recorded the dismissal; only the app-update dialog
persisted one.

Remember the dismissed version per notification (localStorage, keyed like
the app-update dismissal) and skip announcing it again; the toast's own
close now persists that dismissal through a new `onClose` option on the
toast helper. The non-self-updating app-update toast had the same defect.

Verified in a browser against a simulated update payload: check raises the
toast, closing it stores the version and a visibilitychange no longer
re-announces it; clearing the stored key restores the re-announcement.

Co-authored-by: Khaled Ahmed <[email protected]>
2026-09-11 02:43:57 +03:00
..