Skip to content

fix(ui): show loading on automation retries and scope chat action errors - #180615

Merged
steipete merged 4 commits into
mainfrom
solid2/w-s2-recipe-audit-a
Oct 22, 2026
Merged

steipete merged 4 commits into
mainfrom
solid2/w-s2-recipe-audit-a

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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 latest before 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 use latest.

Chat actions now expose their rejected attempt promises to narrow Errored slots 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

Proof Result
Initial automation retry regression on base Fails: aria-busy remains false during the held retry
Three touched unit files 29 passed across the three files; the corrected Undo file passes all 6 tests in 2.74 s wrapper wall time
UI type check Passed
Targeted lint / formatting / diff whitespace Passed
Base/head production build and strict performance Latest recovery head passes all caps; startup 316,549 → 316,798 B gzip (+249 B), one CSS request; chat 1,492,826 → 1,441,005 B; New Session 1,056,563 → 1,017,086 B
Production Knip Same two unused heartbeat files on base and head; no new findings
Independent review Original changes, duplicate-click correction, and integrated seven-file patch independently scoped clean; hosted finding addressed
Full UI / browser / real-Gateway CI Run 39794440157 reports success on the final head; native completed-hosted-gate verification passed

Touched 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/components and ui/src/pages/chat. Counts below exclude tests, fixtures, and domain methods with names matching Solid APIs.

Pattern Before → after
Actions / optimistic values 37 → 37 / 37 → 37
Optimistic stores 1 → 1
Syntactically async memos / projections 14 → 14 / 0 → 0
isPending / latest 48 → 48 / 38 → 38
refresh / affects 15 → 15 / 4 → 4
Loading / Errored / Reveal 104 → 104 / 54 → 57 / 1 → 1
Inline async error states in the two chat controls 2 → 0

Touched-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 unused eslint dependency. 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.

Before: stale error during held retry

After: loading during held retry

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.

Before: read-aloud failure tooltip and status

After: preserved read-aloud failure tooltip and status

Final CI and recovery

Run 39794440157 reports completed success for 653bbeefffe463ecbc50990fb7777923a0e345b0, and the required openclaw/ci-gate is 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 3cd9bddb36d9 and 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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-22T14:17:58.848606Z 653bbee New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@steipete
steipete enabled auto-merge (squash) October 22, 2026 12:57
@steipete
steipete disabled auto-merge October 22, 2026 13:00
@steipete

Copy link
Copy Markdown
Contributor Author

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

@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The panel continues showing “Couldn't load automations.” and Retry while the second request is pending.
  • After: The panel shows “Loading automations…” until the retry settles.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused repair with no actionable finding; confidence remains bounded by fixture-based behavioral evidence and incomplete CI.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; inspected Chromium component-fixture screenshots demonstrate retry loading and preserved speech errors, while Undo behavior is supported by tests rather than shipped-entry-point evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Automation Retry appears to remain failed while its replacement request is loading.
Reason: The visible retry defect merits a focused repair, and the maintainer-authored direction also covers the related chat error-boundary conversion.

Regression provenance

Regression provenance — verified: source commit f7c9c5f23266 by Peter Steinberger; canonical PR #179881 (blame-to-merge-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
Reviewed head: 70cd986f472a7d11395b3ae3c27c4859d7e3a5c0

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supplied evidence does not exercise held automation retry and learned-skill Undo failure recovery through the shipped Control UI; reported red-before/green-after regressions were not rerun in this read-only review.
Agent review details

How this fits together

Control 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +39, Tests +39, Docs +25. Total +103 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 99 60 +39
Tests 3 45 6 +39
Docs 1 25 0 +25
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 169 66 +103

Review metrics

Metric Value Why it matters
Production versus test growth Production +39 lines; tests +39 lines Production growth implements observable attempt receipts and retained-control error slots; test growth covers held retries and duplicate-click rejection without new test-only production seams.

Labels

Label changes:

  • add P2: Incorrect pending feedback affects a limited Control UI interaction with an existing in-product recovery path.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Incorrect pending feedback affects a limited Control UI interaction with an existing in-product recovery path.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 22, 2026, 9:07 AM ET / 13:07 UTC.

@steipete
steipete merged commit 996fc33 into main Oct 22, 2026
99 of 100 checks passed
@steipete
steipete deleted the solid2/w-s2-recipe-audit-a branch October 22, 2026 14:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…ors (openclaw#180615)

* fix(ui): keep retry feedback and chat action errors scoped

* fix(ui): preserve admitted undo errors on duplicate clicks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant