Interval change keeps unreported samples for the reporter (closes #124) #128

Merged
clawbot merged 1 commits from issue-124-keep-unreported-samples into next 2026-10-14 12:23:13 +02:00
1 Commits
Author SHA1 Message Date
sneak 4d33e484ff Interval change keeps unreported samples for the reporter (closes #124)
check / check (push) Waiting to run
The interval menu cleared every host's history, and the reporter builds
each report from that history, so the samples recorded since the last
delivered report were never sent. The menu now resets each host with
HostState.reset, which moves the history's entries to clearedHistory,
keeping the last 100 it has cleared, and buildReport reads both. A host
still pending after the reset is sent with the status of its last check.
The per-host marks are unchanged, so a sample a delivered report had is
not sent again, and the page's history still starts over. Reporter is
exported for the new unit tests.

Model: opus-5-5
2026-10-14 10:04:32 +00:00