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
{{ message }}
Repository navigation
bug(monitoring): agent health reports a measured 0% uptime and 0 ms latency as "not measured" #4685
(src/backend/routers/monitoring.py, in the agent health detail handler.) A measured uptime of 0.0 — an agent unreachable for the whole 24 hours — is falsy, so the response carries null. Every consumer reads null as "never measured" and shows a dash, so the worst possible reading is displayed as no reading.
Context
Found in the pre-landing review of #4684 (Agent Detail Overview rebuild). The Overview's Health card follows the rule "a value never measured is a dash, never 0"; this bug breaks the same rule in reverse.
Acceptance Criteria
Both fields use is not None, so 0.0 is returned as 0.0.
A unit test seeds an agent with only unreachable checks in the window and asserts uptime_percent_24h == 0.0, not None.
An agent with no checks in the window still returns None for both.
Activity
fix(monitoring): report measured 0% uptime and 0 ms latency instead o…
merge-train: sys.modules lint fix + learnings fragment (Abilityai#4702)…
fix(monitoring): report measured 0% uptime and 0 ms latency from perf…