Repository navigation
fix(ui): make cloud failure diagnostics readable and copyable - #130672
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 12:55 AM ET / 04:55 UTC. ClawSweeper reviewWhat this changesThe PR makes Control UI cloud-startup, durable runner, and ordinary chat-error diagnostics expandable, selectable, scrollable, and copyable while preserving retry and dismissal actions. Merge readinessKeep open. Current main still renders these failures as clipped one-line notices, while this focused PR unifies the existing error paths behind an accessible disclosure and copy control; no blocking code or security defect was found. Exact-head CI is still running and the protected maintainer label requires human merge handling. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI receives already-redacted failure text from Gateway session placement and chat state, then renders it near the chat composer. This change affects that final presentation layer without altering the underlying diagnostic data or retry ownership. flowchart LR
A[Gateway failure text] --> B[Chat and placement state]
B --> C[Shared error notice]
C --> D[Compact alert summary]
C --> E[Expanded diagnostic]
E --> F[Copy error control]
Decision needed
Why: The PR is protected as maintainer work and changes user-visible Control UI behavior; automation cannot make the final merge decision. Before merge
Agent review detailsSecurityNone. PR surfaceSource +72, Tests +196, Docs +2. Total +270 across 14 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land one shared, escaped diagnostic presentation after exact-head CI is green, keeping backend redaction and all retry/dismissal ownership at their existing producers. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: current main sends request, run, and placement failures to clipped one-line notices without a disclosure or copy action; the focused mocked-Gateway E2E scenarios in this PR exercise those same paths. Is this the best way to solve the issue? Yes. A shared final-rendering component is the narrowest maintainable fix because all three existing error paths retain their own state and actions while gaining the same readable diagnostic UI. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e2e030e2b0ae. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
a2c01dc to
bc66478
Compare
|
CI repair is complete on bc6647826bbde95c172e44d157f466ff6fc03198. Exact-head pull-request run 33040515478 is green, including The sibling error assertions now select the visible summary without hiding the full diagnostic. Startup progress retains #130669's working indicator; failure rendering stays shared. The startup payload repair replaces duplicated shell listener teardown with one connection-owned abort signal and verifies actual host/window/document behavior across disconnect and reconnect. The published-head Local proof: 440 focused tests, 46 built-UI Chromium E2E tests, full changed checks, and fresh isolated Codex autoreview with no accepted/actionable P0 finding. The PR body contains exact commands and preserves all three approved before/after images. Production +158/-86 (net +72), tests +271/-75, docs +2; most production growth is the diagnostic accessibility CSS. GitHub reports MERGEABLE / CLEAN, with no outstanding review request or enforced approval rule. Ready for final maintainer landing review. Not merged. The newly started ClawSweeper review is pending; its placeholder is not a finding. |
|
Merged via squash.
|
Closes #130652
What Problem This Solves
Fixes an issue where users opening a failed cloud session could only see a single truncated error line above the composer, with no way to read or copy the diagnostic. Initial provisioning failures and ordinary chat request errors had the same limitation.
Why This Change Was Made
Use one shared error notice with a compact preview, native Error details disclosure, a selectable wrapping/scrolling diagnostic, and the existing Copy error control. Route startup failures through that same renderer, so initial cloud failures and durable runner failures cannot drift apart. Startup progress retains the canonical chat working indicator introduced by #130669.
The error remains plain escaped text. Existing Retry and dismissal callbacks retain ownership; opening or copying a diagnostic does not retry, send, or delete anything. No new modal, custom disclosure state, configuration, persistence, protocol, dependency, or backend output limit.
User Impact
Operators can expand, select, keyboard-scroll, and copy the complete diagnostic received by the Control UI on desktop and small phones. Short failures remain compact. Backend redaction and bounded diagnostic retention are unchanged; this does not claim to recover raw output already omitted by a provider.
Release note: make cloud runner and chat failure diagnostics readable and copyable, including initial provisioning failures.
Evidence
CI repair addresses both failures from the original run 33037946381:
Repaired head:
bc6647826bbde95c172e44d157f466ff6fc03198. Exact-head pull-request CI run 33040515478 completed success, includingopenclaw/ci-gate, build-artifacts, real-Gateway UI E2E, all four UI browser shards, and compact-small-18. GitHub reports the PR MERGEABLE / CLEAN. Ready for final maintainer landing review; not merged.Regression tests failed before the production fix: the error disclosure did not exist in both ordinary runner failures and newly created cloud sessions. Sanitized before/after screenshots show the clipped baseline and the expanded desktop/320×568 states, including the final diagnostic line and successful Copy feedback. These are real Chromium renders with a deterministic mocked Gateway, not live cloud-provider proof. The parent also opened and interacted with the local rendered preview.
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/cloud-workspace-conflict.e2e.test.ts ui/src/e2e/new-session-page.cloud-startup-failure.e2e.test.ts ui/src/e2e/new-session-page.cloud-startup.recovery.e2e.test.ts ui/src/e2e/chat-flow.queue-edit.e2e.test.ts ui/src/e2e/chat-flow.streaming.e2e.test.ts ui/src/e2e/chat-header-session-outcomes.e2e.test.ts ui/src/e2e/native-nav-sidebar-toggle.e2e.test.tspnpm ui:buildpassed, including all 770 compressed sidecars and the startup performance gate.git diff --cached --name-only -z | xargs -0 node scripts/check-changed.mjs --base HEAD --before completing the rebase.Production LOC: +158/−86 (net +72). Tests: +271/−75 (net +196). Docs: +2. Production growth is 66 CSS lines for accessible disclosure/wrapping/scrolling and six net TypeScript/catalog lines, including explicit ownership of shell listener cleanup. No duplicate state or modal path was added.
AI-assisted, maintainer-requested repair. Underlying cloud runtime packaging is a separate root-cause repair; this PR fixes access to the diagnostic, not cloud allocation itself.