Commit 1d86033
fix: use -inf sentinel in transition debounce so first emit fires on fresh VMs
The transition debounce used ``0.0`` as the "never-emitted" sentinel. On
GitHub Actions runners where ``time.monotonic()`` starts near zero (it
measures seconds since VM boot), ``now - 0.0`` can fall inside the 60s
debounce window — silently suppressing the very first emit and breaking
the four offline-sweep tests that rely on seeing a notification row.
Tests passed on local dev boxes (hours of uptime → monotonic in the
thousands) but failed on CI every time.
Fix: sentinel becomes ``float("-inf")`` so the first emit always clears
the threshold regardless of host uptime. Added a regression test that
monkeypatches ``time.monotonic`` to 5.0 to lock the behaviour in.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cebeb11 commit 1d86033
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
178 | 184 | | |
179 | 185 | | |
180 | | - | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
301 | 314 | | |
302 | 315 | | |
303 | 316 | | |
| |||
0 commit comments