mirror of
https://github.com/Heretek-AI/ompweb.git
synced 2026-11-09 18:51:28 -10:00
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]>