mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-12-01 05:40:19 +00:00
Once a Warning streak crossed the 3-run notification threshold (#256), the SecurityCheckWorker fired a fresh notification every scheduled interval as long as the streak persisted, because nothing tracked "we already told the user". User report: crt.sh has been flaky and the phone has been posting 502 notifications every interval for hours. Fix: per-source `notifiedForStreak` flag set on first notification past threshold, cleared when the streak resets via Verified or Skipped (same hook as the existing streak counter reset). Subsequent Warning runs in the same streak log silently. If the streak breaks (a Verified or Skipped result lands) and a new 3-run streak builds, the next notification fires normally. Tests: - `continued warning past threshold does not re-notify until streak breaks` - `verified after notified streak resets state and next streak fires again` |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||