Repository navigation
Description
Problem
The new step-by-step run record (#4647) can show a step that ran once per item, such as "3 items · 1 failed". When its items read fails, the list under that heading stays empty. There is no error, no Try again and no loading state. A failed read of a later page drops Show more silently, so the list looks complete. When the read of a picked item's data fails, its data panel never appears.
A reader can't tell "the read failed" from "nothing to show". The heading still promises 3 items, and nothing on the page offers a retry. Only the client's background refetch, for example on window focus, may recover it.
Cause
All paths below are at main 8f87d90c2, in services/platform/app/features/automations/components/.
run-step-items.tsx:64-69(UnitPage):useRunItems(…)→const units = page.data?.units ?? []. It never readspage.isError,page.errororrefetch, anditems.morerenders only whilepage.data?.nextis a string.run-step-items.tsx:153-164and:243-245(RunStepItems):useRunNode(…)for the picked item rendersRunStepDataonly whendetail.datais non-null, with no error branch.run-step-items.test.tsx: it covers listing, failed-only, picking and passes, but not a refused or failed read.- The catalog:
automationRunshas noitems.loadFailedor retry string.
Elsewhere in the same batch, failed reads are handled well, and those components can serve as the model:
runs-table.tsx, from fix(platform): report automation history read failures #4258, setserrorandresetwithresult.retry;run-replay-dialog.tsx:243-253usesreplay.loadFailedwithrefetch;trigger-webhook-panel.tsx:267-280usesdeliveries.loadFailedwith Try again and a focus handoff.
Expected
- Failed items read: show a short alert inside the list, such as "The items didn't load." with Try again (
refetch), and keep the heading. Use the same pattern for a failed later page, keeping the items already shown. - Failed item-data read: show the same alert with Try again in place of the data.
Regression: extend run-step-items.test.tsx, whose request handler already answers 404 for an unknown run, with 500 responses for the first page, a later page and the picked item. Each must show the alert and Try again, and recover after a successful retry.
Severity and owner
- Severity: low. It's a degraded connection or backend refusal on a read-only history view, and no data is lost.
- Owner: platform (automations).
- Same class as: bug(platform): the notification panel says "You're all caught up" when its notifications fail to load #4665, bug(platform): a task page whose read fails says "Page not found" instead of offering Try again #4587 and bug(platform): WebDAV app passwords stay on their loading skeleton when the list fails to load #4652.
- Found by: Review A (TALE-358), 2026-10-10 20:15 Zurich occurrence, by static reading. Not observed live, because the stack is blocked by the missing reservation.
Activity
fix(platform): say when a run step's items fail to load, with Try again
fix(platform): say when a run step's items fail to load, with Try again
fix(platform): say when a run step's items fail to load, with Try again
docs: amend the v0.5.95 release notes
docs: amend the v0.5.95 release notes
docs: amend the v0.5.95 release notes