Logs page: error flickers every refresh and live entries grow without bound #1746

Closed
opened 2026-11-02 04:13:39 +00:00 by sam · 2 comments
Owner
  • ui/src/logs/state.ts:89-90: readError is cleared at the start of each 5 s refresh (:155), so during an outage the error and stale lines alternate.
  • ui/src/logs/state.ts:59, 125: liveEntries keeps every entry while the page is open; only the last 1000 are shown (log-entries.ts:70).
  • ui/src/logs/state.ts:168-171: unavailable is set by logs-status and never cleared.

Done when: the error clears only on a successful read, live entries are pruned to the shown window, and unavailable clears when logs return.

- `ui/src/logs/state.ts:89-90`: `readError` is cleared at the start of each 5 s refresh (`:155`), so during an outage the error and stale lines alternate. - `ui/src/logs/state.ts:59, 125`: `liveEntries` keeps every entry while the page is open; only the last 1000 are shown (`log-entries.ts:70`). - `ui/src/logs/state.ts:168-171`: `unavailable` is set by `logs-status` and never cleared. Done when: the error clears only on a successful read, live entries are pruned to the shown window, and `unavailable` clears when logs return.
sam added the mediumbug labels 2026-11-02 04:13:39 +00:00
sam self-assigned this 2026-11-02 04:13:39 +00:00
Author
Owner

Fixed in 45494d5b and pushed. readError now clears only on a successful read (was cleared at the start of every 5s refresh, so error and stale lines alternated); liveEntries is pruned to 1500 entries (shown window is 1000) so it cannot grow unbounded; streamState leaves unavailable when live entries arrive again. Verified: task check passed on the committed tree.

Fixed in 45494d5b and pushed. readError now clears only on a successful read (was cleared at the start of every 5s refresh, so error and stale lines alternated); liveEntries is pruned to 1500 entries (shown window is 1000) so it cannot grow unbounded; streamState leaves unavailable when live entries arrive again. Verified: task check passed on the committed tree.
Author
Owner

Fixed in 45494d5b and pushed to main. Gate: task check exited 0 on the committed tree.

Fixed in 45494d5b and pushed to main. Gate: task check exited 0 on the committed tree.
sam closed this issue 2026-11-07 06:09:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1746