Repository navigation
Closed
Labels
Description
A1 — generic automation detail read failure wedges on loading
- Classification: candidate defect, P2 (error recovery / route is unusable).
- Source SHA:
9ea59724df24d62729a9360f3902d964dab39b3e(git rev-parse HEADon 2026-09-29). - Probe:
probe-audit.test.tsx(SHA-2568bc1c86f905b0cf176f64d0e2b3df7755564e2c2a9c80585d14d8941b616d3d5), caseproves generic automation detail failure has no error/retry UI. - Run result: pass; see
probe-run.log(4/4 cases pass, including this case).
Reproduction
- Open an existing automation in the local app.
- 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. - 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-200only branches forisMissingAutomationRead; a genericisErrorcontinues to children.services/platform/app/features/automations/components/automation-editor.tsx:467-489handles structured missing, thenif (!automation)returnst('detail.loading').services/platform/app/features/automations/lib/errors.ts:64-79deliberately 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-251retries 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.tsxThe probe runs the actual current component source and UI primitives; only query/mutation and deep canvas hooks are controlled seams. No product source changed.
Activity