Repository navigation
fix(setup): setup failure details cannot be selected or copied - #1918
Conversation
Enable text selection on the CompletePage error card (step error and Local AI diagnostics) so users can copy failure output such as npm errors. Adds a UI regression assertion on the configuration-error failure page.
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesEnables selection and copying of setup failure text and Local AI diagnostics, with a mounted UI regression assertion. Example: Setup displays an install-cli failure containing npm errors.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a current, source-confirmed usability bug with a minimal change, and no introduced correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherSetupWindow routes failures to CompletePage, which renders the supplied error message and optional Local AI diagnostics in its existing error card. flowchart TD
A[Setup failure] --> B[CompletePageArgs]
B --> C[CompletePage]
C --> D[Error text]
C --> E[Local AI diagnostics]
D --> F[Native text selection and copy]
E --> F
Technical reviewBest possible solution: Keep the existing completion-page owner and enable native selection on both diagnostic text blocks while preserving their content and layout. Do we have a high-confidence way to reproduce the issue? Main renders both diagnostic fields without selection enabled, while the PR reports the mounted selection assertion failing before the fix and passing afterward; no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete fix: the defect is disabled native text selection, the invariant is unchanged diagnostic content and presentation, and two attributes restore selection without adding another owner or clipboard path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1912df7e2f97. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 29, 2026, 5:39 PM ET / 21:39 UTC. |
|
Copilot triage agent landing assessment for head 16a7af6: direct review confirms two selection attributes and a focused regression assertion only. Required CI Gate is successful; complete thread inventory is empty. Independent local x64 closeout: full build passed; Shared 4,808 passed with 24 existing opt-in skips; Tray 4,754 passed; focused mounted Light/Dark configuration-error cases 2 passed, 0 skipped. Native production controls were additionally exercised through external computer-use in an isolated scratch host, with matching built SetupEngine.UI DLL identity. Both fields were visibly selected in both themes. Clipboard equality passed for ErrorText in Light (272/272) and optional diagnostics in both themes (88/88). ErrorText clipboard equality in Dark remains unverified: the receipt mismatched during shared clipboard activity, and safe input dispatch later refused a retry. This is not recorded as successful Dark clipboard proof or as an established product defect. No installed-app or Gateway runtime claim is made. The focused test has no NativeOnboardingProof category or opt-in. Its automated render captures are RenderTargetBitmap artifacts, separate from the computer-use captures. The narrow, theme-independent selection change is safe to land with the explicit clipboard limitation above. No check bypass or source adjustment was used. |
…law#1918) Enable text selection on the CompletePage error card (step error and Local AI diagnostics) so users can copy failure output such as npm errors. Adds a UI regression assertion on the configuration-error failure page.
What Problem This Solves
Fixes: when setup fails (for example a WSL Gateway
install-clistep failing with npm errors), the error text on the "Setup failed" screen can't be selected or copied.User Impact
User impact: users can select the setup failure details (and Local AI diagnostics in the same card) and copy them with Ctrl+C or the right-click menu, so they can paste them into bug reports.
Why This Change Was Made
The error card showed its text in
TextBlocks without selection enabled. This change enables selection on both text blocks in the card, matching the other setup pages that show diagnostic text. Every setup failure route ends on this page.Evidence
SetupWindowto the failure page, selects all the error text, and checks that the selected text matches the displayed text. It failed before the fix (selection disabled) and passes after it, in Light and Dark themes.Change Type
Scope
winnodeRequired proof pools
none: a XAML attribute change on one setup page, covered by an automated UI test inOpenClaw.Tray.UITests; it doesn't need capacity-dependent custom Windows proof.Validation
All runs were on Windows ARM64 (win-arm64):
./build.ps1: all builds succeeded.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore(withOPENCLAW_REPO_ROOTset): 4808 passed, 24 skipped, 0 failed. WithoutOPENCLAW_REPO_ROOT, 5 MXC tests failed because they resolveinstaller.issand the test host underbin\; that is unrelated to this change.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 4754 passed, 0 failed.dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj -r win-arm64 --filter "FullyQualifiedName~SetupWindowMinimumSizeTests.NativePresenter_ClampsBelowMinimumAndDetachesOnConfigurationErrorClose"(isolatedOPENCLAW_TRAY_*dirs): before the fix, 2 failed (IsTextSelectionEnabledwas False). After the fix, 2 passed.Real Behavior Proof
SetupWindowwith an invalid config, which navigates to the "Setup failed"CompletePage.ErrorText.IsTextSelectionEnabled == true; afterSelectAll(),SelectedTextequals the displayed error text, in Light and Dark.Security Impact
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain the risk and mitigation:Compatibility and Migration
Yes/No) YesYes/No) NoYes/No) NoReview Conversations