Repository navigation
improve(ui): show errors with a next step and collapsed details - #192057
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: e45beffb-6f16-44e1-bc2f-4352ea384208
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Remove obsolete raw-first-line normalization, use the actual DOM test contract, and expand diagnostics explicitly in rewind custody proof. Co-authored-by: vyctorbrzezowski <[email protected]>
|
Codex review: needs changes before merge. What this changesThis PR adds collapsed, redacted error details and shorter recovery summaries across selected Control UI surfaces. Example: Saving a dashboard default fails with an UNAVAILABLE response.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep this PR open: the shared disclosure is useful, but generic chat copy hides existing recovery instructions, and two verified integration failures need repair. Priority: P2 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherControl UI mutation and loading owners supply failures to shared presentation components, which render recovery text and redacted diagnostics while existing owners retain retry, dismissal, and persistence. flowchart TD
A[Gateway or loading failure] --> B[Existing operation owner]
B --> C[Recovery summary]
B --> D[Error formatter and redactor]
D --> E[Collapsed diagnostic disclosure]
C --> F[Toast panel or chat notice]
E --> F
Technical reviewBest possible solution: Keep the shared disclosure renderer, preserve caller-owned recovery instructions, and repair the affected consumer tests and measured boot growth. Do we have a high-confidence way to reproduce the issue? Source and supplied screenshots establish the noisy error presentation; exact-head CI additionally demonstrates hidden chat recovery text and the stale router assertion. Is this the best way to solve the issue? Reusing the existing formatter and presentation owners is appropriate, but replacing every unspecialized chat summary also erases intentionally visible recovery guidance. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 868609a3f6cb. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +26, Tests +61, Other +3. Total +90 across 22 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 November 3, 2026, 11:37 AM ET / 16:37 UTC. |
Keep existing caller summaries until those producers provide separate diagnostics; preserve the keyed disclosure lifecycle and test the busy-session guidance. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: fb5d4695-45b2-42b3-b812-a2ef02f6e55a
|
Current-head validation update (85a96b2): the focused recovery tests and 17 attachment-lifecycle E2E cases pass locally; test-only DOM typing and caller-owned recovery guidance were corrected. The current CI performance job is still a landing blocker: its merge tree against 45c571e reports chat boot gzip 1,280,660 → 1,280,905 bytes (+245), above the 1,280,674-byte cap; CSS is unchanged at 320,610 bytes. This differs from the recorded local comparison against the earlier pinned base, so that local pass does not clear the current gate. No budget/baseline relaxation or required-check bypass has been made. Job: https://github.com/openclaw/openclaw/actions/runs/41677802647/job/126064090073 |
Keep permission failure details separate from the approved recovery copy, route shared error disclosures through redacted technical details, and carry their state through the chat view. Co-authored-by: vyctorbrzezowski <[email protected]>
…claw#192057) improve(ui): show errors with a next step and collapsed details Co-authored-by: vyctorbrzezowski <[email protected]>






What Problem This Solves
Control UI errors can mix a recovery message with a raw diagnostic. This makes a small save failure noisy and gives people inconsistent ways to inspect its cause.
User Impact
Migrated errors show a next step first, with diagnostics behind collapsed “Show details.” Existing redaction, retry, dismissal, links, and toast placement are preserved. A new error resets an open disclosure; unrelated updates do not.
Why This Change Was Made
Extend the existing config-error, toast, lazy-panel, and chat owners rather than adding a competing error pipeline. Dashboard-default saves and Labs settings are representative callers, not a UI-wide copy rewrite. No new state store or dependency.
Deliberately preserved: existing caller-owned chat recovery text (for example, “Session is busy; wait for the current run to finish.”), specialized reply/stop errors, and stale-file recovery instructions. Those producers do not yet separate summary from diagnostics; replacing their instructions with a generic retry would regress recovery. Later copy PRs can migrate those producers explicitly.
Evidence
e5bd90ed866fb7656ece78250a46e8d0a343cfe0passed: chat boot JS 1,280,907 → 1,280,694 B gzip (-213 B); 20 → 20 requests. Total CSS 320,638 → 320,638 B gzip (+0 B). No budget/baseline increase.150873b4f033ad95ced58f880bd2cb12b9718a50; current publication:85a96b28bf0976f6402a870d7c52c9e1a32fd5d1. Current-head CI remains the landing gate; earlier-head results are not treated as current-head proof.Visual evidence
Inspected synthetic diagnostics, light theme, identical 1280×900 viewports; crops preserve the captured geometry. Toast/panel visuals are unchanged by the later chat recovery fix.
Worked on by
Landing integration
Integrated main while retaining the current stacked-toast owner, semantic icons, compact-padding measurement, session-only toolbar clearance, and localized permission formatting. F1 details are keyed to each toast’s options, and Labs retains its current state/link owners. The integrated head passed 179 focused tests across 9 files, UI typecheck, scoped lint, and i18n baseline/verification. The existing 69-line allocation still exactly matches test growth; the test-line guard retains 110 lines of base debt. Full CI and visual capture were not repeated locally.