Skip to content

Fix rest timer duplicate and missing notifications#27

Merged
willchan merged 2 commits intomainfrom
claude/fix-rest-timer-notification-aTs6i
Mar 9, 2026
Merged

Fix rest timer duplicate and missing notifications#27
willchan merged 2 commits intomainfrom
claude/fix-rest-timer-notification-aTs6i

Conversation

@willchan
Copy link
Owner

@willchan willchan commented Mar 9, 2026

Two bugs fixed:

  1. Race condition: async updateTimer callback could fire multiple times
    simultaneously when browser resumes from suspension, causing duplicate
    notifications. Added a guard flag to prevent re-entry.
  2. Missing notification: when page re-renders and finds an already-expired
    timer, it was silently cleared without notifying. Now fires notification.

https://claude.ai/code/session_01Fh28cVSx69AKfkhsNNKwMC

claude added 2 commits March 8, 2026 22:30
Two bugs fixed:
1. Race condition: async updateTimer callback could fire multiple times
   simultaneously when browser resumes from suspension, causing duplicate
   notifications. Added a guard flag to prevent re-entry.
2. Missing notification: when page re-renders and finds an already-expired
   timer, it was silently cleared without notifying. Now fires notification.

https://claude.ai/code/session_01Fh28cVSx69AKfkhsNNKwMC
Tests verify:
1. Expired timer found on page re-render fires a notification (not silently cleared)
2. Timer expiry fires notification exactly once (no duplicates from race condition)

https://claude.ai/code/session_01Fh28cVSx69AKfkhsNNKwMC
@willchan willchan merged commit 404e069 into main Mar 9, 2026
1 check passed
@willchan willchan deleted the claude/fix-rest-timer-notification-aTs6i branch March 9, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants