Skip to content

Bug: a generic automation detail read failure wedges the editor on Loading #3820

Closed

Description

@yannickmonney

A1 — generic automation detail read failure wedges on loading

  • Classification: candidate defect, P2 (error recovery / route is unusable).
  • Source SHA: 9ea59724df24d62729a9360f3902d964dab39b3e (git rev-parse HEAD on 2026-09-29).
  • Probe: probe-audit.test.tsx (SHA-256 8bc1c86f905b0cf176f64d0e2b3df7755564e2c2a9c80585d14d8941b616d3d5), case proves generic automation detail failure has no error/retry UI.
  • Run result: pass; see probe-run.log (4/4 cases pass, including this case).

Reproduction

  1. Open an existing automation in the local app.
  2. Before its first detail read settles, return a generic transport/server response (for example GET /api/app/automations/<slug> → 503) and let the query retries settle.
  3. Observe the Editor tab.

Expected / actual

  • Expected: an actionable failure state that distinguishes a temporary read failure from not-found, names the error, and offers Retry/reload.
  • Actual: the component renders the ordinary Loading the automation… text, with no alert and no retry/reload control. The user cannot recover from that route except a broader navigation/reload.

Source path

  • services/platform/app/features/automations/components/automation-detail-shell.tsx:147-170,194-200 only branches for isMissingAutomationRead; a generic isError continues to children.
  • services/platform/app/features/automations/components/automation-editor.tsx:467-489 handles structured missing, then if (!automation) returns t('detail.loading').
  • services/platform/app/features/automations/lib/errors.ts:64-79 deliberately classifies no-code transport failures as not missing; the UI therefore needs a generic error branch but has none.
  • services/platform/app/lib/backend/adapters.ts:243-251 retries generic transport failures three times, so this reproduces after the built-in retry budget is exhausted, rather than during a transient first attempt.

The deterministic probe mocks the actual imported query hook to {data: undefined,isPending:false,isError:true,error: new Error('Request failed with status 503')} and renders the current AutomationEditor. It observes Loading the automation…, no role=alert, and no button matching Retry/Try again/Reload.

Deduplication

Distinct from #3621, which is the Runs/Versions tab passing failed list reads as empty, and #3707, which is the failed approval-card read. This is the shell/editor detail read itself.

Probe replay

From services/platform (temporary file is removed after the run):

cp /Users/yannick/.codex/notes/tale-1000-additional/automations-next/probe-audit.test.tsx app/features/automations/components/.audit-probe.test.tsx
bun x vitest run --config /Users/yannick/Documents/git/tale/services/platform/vitest.ui.config.ts app/features/automations/components/.audit-probe.test.tsx --reporter verbose
rm app/features/automations/components/.audit-probe.test.tsx

The probe runs the actual current component source and UI primitives; only query/mutation and deep canvas hooks are controlled seams. No product source changed.

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

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions