Repository navigation
Description
A failed approval read silently removes the pending run decision card
Confirmed at 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d. Suggested severity: P2.
The reviewer loses the only decision surface for the waiting connector operation without an explanation or in-card recovery action.
Reproduce:
- Open a live run whose detail names a pending connector-operation approval and whose run-detail read succeeds.
- Make the approval-detail GET return503 with no cached approval, and let the normal query retries finish.
- Observe the pending approval region after the actual query enters error with fetchStatus idle.
Expected: A failed approval read must show an error and a recovery action, preserving an explanation that the run is waiting for a decision.
Actual: RunApprovalCard treats undefined error data as null and returns nothing. There is no approval context, Approve/Reject, failure alert, or Retry. The caller already selected the approval-card branch, so its plain waiting banner is not rendered either.
Controls: A successful pending read renders the exact connector action, input and both decision buttons. After a failed read, a later SSE-open event through the real global hint hook successfully refetches and restores the card. A successful decision plus the actual approval hint shows the approved status. This is not a permanent-wedge claim.
Source:
- services/platform/app/features/automations/components/run-approval-card.tsx:42-50
- services/platform/app/features/automations/components/run-detail.tsx:281-307
Frozen proof: /Users/yannick/.codex/notes/tale-1000-additional/approvals-wave01/frozen/batch-02/approval-ui.test.tsx, approval-ui.log, vitest.config.ts and native-shaped approval-api-results.json. SHA-256 hashes are in the same directory’s sha256.json. All nine observation/control tests passed; these assert the current behavior, not a fix.
/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x --no-install vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/approvals-wave01/vitest.config.ts approval-ui.test.tsx --maxWorkers=1 --testTimeout=30000 --reporter=verboseThe frozen files preserve the tested state. The replay command runs the identical working proof files with the pinned worktree and installed dependencies.
Limits: Actual RunApprovalCard, feature query/mutation hooks, generic backend hooks, adapters, React Query, SSE hint consumer, shared UI and i18n execute in jsdom. The authenticated session and final backendFetch transport are synthetic fixtures; EventSource is an inert emitter. Native pending-row shape is taken from the isolated API fixture. Query retries run to a settled error with a shortened retry delay. No browser layout/focus, full run stepper, connector, worker, provider, or production execution is claimed. The caller fallback behavior is verified from the actual parent source; the full run-detail component was not mounted. The existing global SSE-open recovery is executed as a control, so the report is limited to the silent failed state and absence of in-card recovery. Browser checks were skipped at the parent’s instruction because the browser connection was unavailable; no visual or focus claims are made.
Deduplication: Related error-presentation family. Existing issue is automation Runs/Versions history list false-empty states; it does not cover the separate pending RunApprovalCard read, disappearing decision surface, or approval identity state. Parent should judge consolidation. Related error-presentation family in Governance Usage/Trash; different concrete component/query/fix from pending approvals. No exact pending-approval-card root found in1028 cached all-state bodies,102 baseline findings or current additional ledger. Detailed matches and dispositions are retained in dedup-batch-02.json. Parent owns independent review and publication.
Independent review
Read the actual query/card and parent fallback; independently replayed all nine component cases. A fully settled query error leaves no card, failure or in-card retry. Native-shaped pending success and actual global SSE-open recovery passed. Independent read-error consumer in the pending decision surface is distinct from prior automation history list reports.
The affected source files are unchanged between the tested revision and current main d351611bd as checked before publication. Checked all-state issue bodies and the separate baseline of 102 reports; this entry is additional to that baseline.
Activity