You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: read Focus state fresh for every fallback sound
Replace the stale cached Focus snapshot with a fresh assertion-store
read per play. The read still happens on the background utility queue
(no disk I/O on the @mainactor callers); playback hops back to the main
queue afterwards. An out-of-band sound a few milliseconds later is
imperceptible, but a stale snapshot is not: it let the first sound after
the user enables a Focus punch through, which is the canonical repro of
the bug this gate exists to fix.
This deletes the cache, its lock, and the in-flight flag outright -
notification sounds are cooldown-throttled, so per-play reads need no
caching layer.
This is the green half: the staleness tests from the previous commit now
pass.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments