Skip to content

bug(platform): "Runs without approval" says an automation makes no approval-gated write when its read fails #4766

Closed

Description

@yannickmonney

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.error or refetch.

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.isError before 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

Activity

  1. added
    agent-ready
    on Oct 29, 2026
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