Skip to content

bug(platform): a run step’s items list stays empty under its count when the items read fails, with no Try again #4745

Closed

Description

@yannickmonney

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 reads page.isError, page.error or refetch, and items.more renders only while page.data?.next is a string.
  • run-step-items.tsx:153-164 and :243-245 (RunStepItems): useRunNode(…) for the picked item renders RunStepData only when detail.data is 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: automationRuns has no items.loadFailed or retry string.

Elsewhere in the same batch, failed reads are handled well, and those components can serve as the model:

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

Activity

  1. added
    agent-ready
    on Oct 29, 2026
  2. added a commit that references this issue on Oct 31, 2026
    687fb0e
  3. added a commit that references this issue on Oct 31, 2026
    b0ea07d
  4. added 2 commits that reference this issue on Oct 31, 2026
    12834e4
    b460f06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions