mirror of
https://github.com/carey314/mio-plugin-worker.git
synced 2026-08-10 07:04:32 +00:00
Prior path used a lastFired-timestamp dedupe but never reset the sitAccumActiveSec counter, so after the first 45min alert the panel kept showing "已坐 90 分钟" / "135 分钟" — counter monotonic across cycles. The UX intent is each ack starts a fresh cycle. Now: on fire, alert + reset counter to 0. Next triggerSec of sitting kicks a fresh alert. Reset is the simpler dedupe — there's no physical way to re-fire without accumulating triggerSec from 0. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| NotificationCenter.swift | ||
| SoundPlayer.swift | ||
| SystemIdle.swift | ||
| WorkerDebugLog.swift | ||
| WorkerStore.swift | ||