fix(observe): clear stale notifications before re-attempting observe mode

This commit is contained in:
Marc Billow
2026-07-09 18:36:36 -05:00
parent 97260441f1
commit eecbc19dde
2 changed files with 63 additions and 9 deletions
+1
View File
@@ -87,6 +87,7 @@ class ObserveManager:
"""Blocking — subscribes to every href then sleeps for the whole
grace period. Caller must run this in an executor, never on the
event loop."""
self._notified.clear()
subscribed: set[str] = set()
for href in hrefs:
segs = [s for s in href.strip('/').split('/') if s]