dashboard: the Updates tab goes blank forever after one failed first read #302

Closed
opened 2026-08-05 23:11:10 +00:00 by ben · 1 comment
Owner

dashboard/src/components/provisioning/UpdatesSurface.vue:187 — catch { return; } would be right for a re-read, but there is no poll here: reload runs on mount and source-change only, so a failed first read leaves surface null and the tab renders nothing, forever, with no retry. The comment defers to the shell's full-screen reachability state, which only covers a fully-unreachable control plane, not one failed read.

Acceptance

  • A failed first read renders an error state with retry (async-guard idiom).
  • Vitest: first read rejects ⇒ error + retry; retry succeeds ⇒ surface renders.

Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).

`dashboard/src/components/provisioning/UpdatesSurface.vue:187` — `catch { return; }` would be right for a re-read, but there is no poll here: reload runs on mount and source-change only, so a failed **first** read leaves `surface` null and the tab renders nothing, forever, with no retry. The comment defers to the shell's full-screen reachability state, which only covers a fully-unreachable control plane, not one failed read. **Acceptance** - A failed first read renders an error state with retry (async-guard idiom). - Vitest: first read rejects ⇒ error + retry; retry succeeds ⇒ surface renders. --- _Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code)._
Author
Owner

Fixed in 501aa28 (on origin/main). UpdatesSurface.vue reload() now runs the seam read behind useAsyncGuard: a failed FIRST read renders OcErrorState (data-status="updates-unreachable") with a Try again that re-reads, instead of a forever-blank tab. A later re-read that fails still keeps its last rendered surface (surface branch wins over the error branch — story 27 posture preserved). Red-first Vitest dashboard/tests/unit/updatesGuard302.test.ts: first read rejects ⇒ error state + retry, no surface leaked; retry succeeds ⇒ surface paints. vue-tsc clean; updates suite green.

Fixed in 501aa28 (on origin/main). `UpdatesSurface.vue` `reload()` now runs the seam read behind `useAsyncGuard`: a failed FIRST read renders `OcErrorState` (`data-status="updates-unreachable"`) with a Try again that re-reads, instead of a forever-blank tab. A later re-read that fails still keeps its last rendered surface (surface branch wins over the error branch — story 27 posture preserved). Red-first Vitest `dashboard/tests/unit/updatesGuard302.test.ts`: first read rejects ⇒ error state + retry, no surface leaked; retry succeeds ⇒ surface paints. `vue-tsc` clean; updates suite green.
ben closed this issue 2026-08-06 00:27:43 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#302
No description provided.