fix(voice): throttle repeated pod alerts

This commit is contained in:
Yahya Alhinai
2026-06-28 06:49:04 +00:00
parent c1ac687dcf
commit aaf1dc5ede
6 changed files with 61 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export function shouldIntervene(collision: Collision, prior: RecalledCollision |
const cooldown = cooldownMs();
const last = lastNudgeByPod.get(collision.podId) ?? 0;
if (cooldown > 0 && Date.now() - last < cooldown && collision.severity !== 'critical') {
if (cooldown > 0 && Date.now() - last < cooldown) {
return false;
}