Repository navigation
fix(ui): show loading on automation retries and scope chat action errors - #180615
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d63c068ac2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Fixed the duplicate Undo-click receipt in 70cd986. The ignored click now leaves the admitted action's promise in place. A deferred rejection test fails on the previous head and passes with the guard; all six Undo tests, UI types, and targeted lint pass. The correction also passed independent review. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR restores loading feedback during automation retries and presents chat action failures through narrow Solid error boundaries. Example: Retry loading automations for “Weekly project review” after the initial request fails.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR fixes a retry-feedback defect still present on current main; no actionable introduced correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI components consume cron read receipts, speech playback promises, and skill Undo results, then display loading, progress, and errors while existing owners retain request admission and settlement. flowchart TD
A[User controls] --> B[Existing operation owners]
B --> C[Gateway requests and playback]
C --> D[Completion receipts]
D --> E[Solid loading and error boundaries]
E --> F[Visible progress and recovery]
Technical reviewBest possible solution: Use the existing operation receipts with narrowly scoped loading and error boundaries while preserving accepted content and synchronous admission guards. Do we have a high-confidence way to reproduce the issue? Current-main source retains the error boundary outside Loading, and the supplied before screenshot shows the stale failure during a held retry; no target code was executed during this review. Is this the best way to solve the issue? The retry fix addresses the presentation boundary directly, and the chat changes replace copied error strings with observed promises without adding another operation owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b80c9a750b61. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +39, Tests +39, Docs +25. Total +103 across 7 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 22, 2026, 9:07 AM ET / 13:07 UTC. |
|
Merged via squash.
|
…ors (openclaw#180615) * fix(ui): keep retry feedback and chat action errors scoped * fix(ui): preserve admitted undo errors on duplicate clicks
What Problem This Solves
Fixes an automation hovercard that keeps showing its old failure while Retry is loading. Also completes the Solid error-boundary recipe for chat Read Aloud and learned-skill Undo.
User Impact
The automation retry displays its existing loading state. Accepted automation details remain visible during background refreshes. Speech and skill Undo keep their controls, error text, retry behavior, and synchronous admission checks.
Why This Change Was Made
The hovercard used
latestbefore it had an accepted result and placed loading inside the retained error boundary. Initial reads now consume ordinary readiness, with loading outside the error boundary; successful snapshots still uselatest.Chat actions now expose their rejected attempt promises to narrow
Erroredslots instead of copying errors into local signals. Their co-written optimistic flags continue to own progress. The async recipes document this retained-control pattern. Gateway and playback owners still decide admission, cancellation, and settlement.The hosted review also caught a duplicate-click case: an ignored Undo click could replace the admitted request’s error receipt. The handler now keeps that receipt; a held-rejection regression fails before the guard and passes after it.
Evidence
aria-busyremains false during the held retryTouched production LOC: 679 → 718 (+39). The growth replaces two inline error states with observable attempt receipts and isolated error boundaries; it adds no domain owner, dependency, or lazy import.
Recipe audit census and retained contracts
The audit covers 1,312 production files in
ui/src/componentsandui/src/pages/chat. Counts below exclude tests, fixtures, and domain methods with names matching Solid APIs.isPending/latestrefresh/affectsLoading/Errored/RevealTouched-file refactor smells are unchanged: one effect (playback lifecycle), zero render effects, untrack calls, direct listeners, DOM queries, production flushes, or owner captures. All saving affordances inspected use optimistic flags; no confirmed outside-loading hold was found. Existing refresh calls target actual derivations. Pure decoration failures intentionally resolve to absent content, and uncertain/domain-recorded outcomes remain with their owners.
The question-resource follow-up landed in #180630 and the MCP catalog/panel/context follow-up landed in #180635. Goal, sharing, provider, outbox, and automation owners retain their typed, durable, or uncertain outcome contracts. Widget pinning retains one renderer error flag for its native button title and once-per-attempt toast: routing that attribute through an error effect would raise the file’s shrink-only effect baseline; wrapping the button in Errored would replace its identity. This is a documented remaining recipe exception, not a claimed conversion.
On the integrated base and head, production Knip reports the same two unused heartbeat modules, with no new findings. Earlier pre-integration base proof additionally reported
tools/solid-lint’s unusedeslintdependency. No ignore or source changes were made for these inherited findings.Before / after
Synthetic Chromium captures of the same held second request. Before retains the error and Retry; after shows loading. The real component and production CSS are used in a scoped fixture; no account data or live Gateway is involved.
Read-aloud failure feedback is pixel-identical before and after, including the tooltip and inline status. The fixture makes one rejected synthetic speech request per side.
Final CI and recovery
Run 39794440157 reports completed success for
653bbeefffe463ecbc50990fb7777923a0e345b0, and the requiredopenclaw/ci-gateis green. Native completed-hosted-gate verification passed. GitHub still lists two job rows as in progress despite their complete successful logs and normal runner shutdown: UI shard 1/9 has 421 passing tests; real-Gateway shard 1/2 has 20 passing tests and three skips. That metadata discrepancy is retained as a caveat; no check status was rewritten.Earlier runs exposed inherited failures in a sessions-patch fixture, the Workboard title expectation, and both spawned-session sidebar variants. The exact failing names were reproduced on their protected bases. Main now contains their repairs (#180653 and #180666 for the UI assertions). The preceding run also left its successful baseline-ratchet job nonterminal in GitHub, which blocked the native inherited-failure route. The campaign's interrupted-run recovery merged current main
3cd9bddb36d9and pushed one replacement head. The authored diff remains seven files, with no new production change for that recovery.The final paired build preserves one startup CSS request and passes all head budgets. Startup core has the same 221 source modules and identical source content across base/head; the +249 B comes from generated cross-chunk linkage. The base's New Session bundle exceeds its current cap; the head reduces it below that cap. No budget baseline changed. Independent review, UI typecheck, and the exact base/head Knip comparison were refreshed for this integration.