Repository navigation
improve(ui): offer "Report a bug" only on chat errors OpenClaw cannot explain - #198069
roboclaw-bot wants to merge 4 commits into
Conversation
Chat error notices attached "Report a bug" to every error, including ones with a known cause and a clear next step. The notice now shows the link only when its source could not explain the failure: a reply that failed for an unknown reason, a session that could not start, and page-level errors that carry their raw failure. The link is a quiet secondary link after the recovery action. Co-authored-by: vyctorbrzezowski <[email protected]>
… explain Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 9908477f-b922-4275-b42b-7b55dda6f34a
|
🦞👀 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. |
The transcript card offers reporting only when the run has no failover reason or one that leaves the cause open, and shows it as a quiet link after the recovery actions. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 56f39ae5-d82a-4f12-8fc6-565a4fe541b4
|
Codex review: needs maintainer review before merge. What this changesThis PR makes bug-report links secondary and limits them to chat failures without an explained cause. Example: A transcript reply fails with OpenRouter billing as its recorded cause.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored draft open: the reporting change is useful, and no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI error owners supply messages, diagnostics, and recorded failure causes to existing notice components, which render recovery actions and a fixed GitHub reporting link. flowchart TD
A[Chat operation failures] --> B[Existing chat error owner]
C[Transcript failure facts] --> D[Reply failure notice]
B --> E[Shared chat notice]
E --> F[Recovery controls]
D --> F
E --> G[Conditional GitHub report link]
D --> G
Technical reviewBest possible solution: Keep reporting conditional within the existing error renderers, preserving recovery controls, diagnostic redaction, and the Help menu entry. Do we have a high-confidence way to reproduce the issue? Current-main renderers unconditionally attach reporting links, matching the supplied before screenshots; no independent runtime reproduction was performed. Is this the best way to solve the issue? The patch is a focused implementation using existing diagnostic ownership and structured failure reasons instead of guessing from displayed text. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c74c7a977c06. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +74, Tests +52, Docs +1. Total +127 across 14 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label 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 12, 2026, 11:15 PM ET / November 13, 2026, 04:15 UTC. |
|
Re-reviewed The current change still addresses a behavior present on main. I checked the error-state owner, redaction and static reporting URL, and inspected the existing desktop/mobile before-and-after evidence. No production adjustment is needed. Fresh focused validation passed for notices, the transcript failure card, reactions and task suggestions, including the browser layout cases. The two runs reported 583 and 580 passing cases respectively; those totals overlap because the wrapper adds the same mandatory canaries. The independent full-change review found no actionable P0–P2 issue. The existing exact-head CI size-budget failure remains a landing gate; this comment does not waive it. No new source push or redundant CI rerun was made. |
What Problem This Solves
Every chat error notice carries a "Report a bug" link, including errors with a known cause and a clear next step, such as a draft that could not be saved, a busy session, or an expired sign-in. The link is accent-colored and sits where the recovery action belongs, so it reads as the main action on notices where reporting does not help.
User Impact
User impact: chat error notices offer "Report a bug" only when OpenClaw cannot explain the failure, and the link is a quiet secondary link after the recovery action.
Sources are opted in one at a time, and the default is no link. An unexpected failure from a source that is not opted in loses the one-click link; the Help menu entry still opens the same form.
Why This Change Was Made
The shared chat error notice attached the link unconditionally and received page-level errors as plain text, so it could not tell a written explanation from a raw failure. Deciding from the message text would be guessing. Instead, a source that has no explanation of its own now passes the raw failure along with its message, through the detail channel the error owner already had, and the notice offers reporting only when that raw failure is present. The reply-failed and session-start notices already know their failure kind and pass the decision directly. No new state or props travel through the chat pane.
Two side effects of reusing that channel:
Accepted edge case: a missing-permission error that reaches one of the opted-in sources is shown with its written explanation and still gets the link. These actions are checked for access before the request is sent, so this needs a permission change while the request is in flight.
The transcript card already receives the failover reason of the failed run. It offers reporting when there is no reason, or when the reason leaves the cause open:
format,empty_response,no_error_details,unclassified, andunknown. A reason added later counts as explained until it is added to that list.Overlap: #197822 restructures the same card and will need a rebase over this change. Its author asked for this order.
Evidence
Screenshots are the production Control UI build against a mocked Gateway with synthetic messages, in Chromium, light theme, at 100% scale. "Before" is the base
0633f256350b. Each failure comes from the real flow: IndexedDB writes rejected in the page for the draft notice, achaterror event after a real send for the reply notices, a rejectedsession.reactions.setafter picking a reaction, and a failed run in the session history for the transcript card.Draft could not be saved (known cause, 1280 px)
Reply failed, cause unknown (1280 px)
Transcript card, no named cause (1280 px)
Transcript card, billing problem (1280 px)
Session busy, reaction failed, overloaded provider, and 390 px
Session busy (known cause, 1280 px)
Reaction failed (raw failure, 1280 px)
Reply failed, cause unknown (390 px)
Session busy (390 px)
Transcript card, overloaded provider (1280 px)
Transcript card, no named cause (390 px)
Transcript card, billing problem (390 px)
Transcript card, overloaded provider (390 px)
Author checks on
7b31dd883d4b:chat-view-notices.test.tsx,chat-view-notices.browser.test.tsx(Chromium), andchat-run-failure-notice.test.ts: 46 passed. The new notice case covers an explained page-level error with no link and no action slot, sign-in and busy reply failures with recovery but no link, and an unexplained reply failure with the link after the recovery button. The card test now also proves a billing failure and an overloaded provider show no link. The existing 300 px and 500 px cases still prove recovery and reporting do not overlap and stay clickable.chat-run-failure-notice.browser.test.tsx(Chromium),chat-run-failure-streaks.test.ts, andchat-transcript-invalidation.test.ts: 33 passed.pnpm check:changedon an earlier revision also reported unused exports inscripts/bench-ci-planner.mtsandui/src/pages/config/talk-transcription.tsx. This change does not touch either file. Its line-cap failure on that revision is fixed here by reusing the existing detail channel.origin/main. The first pass found one P2: accepting a task suggestion lost the link for unexplained failures. That is fixed; the repository prompt, which explains its own failure, stays without the link. Later passes onea28b99f7c10and on the final7b31dd883d4b, which adds the transcript card, reported no findings. The reviewer saw the diff only and did not run code.Size against the merge base: production +98/−24 across 10 files, of which 45 lines are CSS; tests +53/−1; docs +3/−2.
Not covered: WebKit and Firefox, dark theme and right-to-left screenshots, and a live Gateway.
Requested and directed by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by