Repository navigation
Description
Problem
#4763 added Runs without approval to an automation's General tab. It lists the writes the automation may make without a person approving each run. When that list fails to load, the section says:
This automation makes no write that waits for approval.
That is a verdict the page never established. An owner or admin checking which approval-gated writes an automation makes is told there are none. There is no error and no Try again, and the grant toggles they came to review never appear.
Cause
All paths below are at main d08251809, in services/platform/app/features/automations/components/approval-allowances-section.tsx.
- Line 56:
useApprovalAllowances(organizationId, name). - Line 60:
actions = query.data?.actions ?? []. - Line 149:
Skeletonize loading={query.isPending}. A failed read is no longer pending, so it falls through to lines 154–156:actions.length === 0→t('allowances.none'). - No error path: the component never reads
query.isError,query.errororrefetch.
The same automation editor already handles failed reads elsewhere, for example trigger-webhook-panel.tsx, which shows loadFailed with Try again and a focus handoff.
Expected
- Branch on
query.isErrorbefore the empty state. Show a short alert, such as "The writes that need approval didn't load.", with Try again (refetch), and keep the section's title and hint. - Show This automation makes no write that waits for approval. only after a successful read.
Regression: a component test with a failing automations/queries:listApprovalAllowances read (500). It must show the alert and Try again, never allowances.none, and render the toggles after a successful retry.
Severity and owner
- Severity: low to medium. It's a false negative about approval-gated writes on a governance setting. Nothing is granted by mistake, because no toggles render, but the owner or admin is misinformed.
- Owner: platform (automations).
- Same class as: bug(platform): a failed project list read marks every Project budget rule "Deleted project" and says to remove it #4605 and bug(platform): a failed agent-list read makes a project's Default reviewer say its agent is unavailable #4644 (a failed read turned into a verdict), and bug(platform): a run step’s items list stays empty under its count when the items read fails, with no Try again #4745 and bug(platform): an automation’s model picker says "No models found" when the model roster fails to load #4765.
- Found by: Review A (TALE-358), 2026-10-11 04:15 Zurich occurrence, by static reading. Not observed live, because the stack is blocked by the missing reservation.
Activity