Repository navigation
fix(ui): surface onboarding and pairing clipboard failures - #118651
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 8:51 AM ET / 12:51 UTC. ClawSweeper reviewWhat this changesThis PR routes Control UI device authorization, mobile pairing, channel-onboarding, and login-recovery copy actions through shared accessible clipboard feedback, including localized label resets after rerendering. Merge readinessKeep this PR open for maintainer-owned landing. The exact head repairs the four source-proven silent clipboard-failure paths through the existing shared feedback owner, includes focused sibling coverage and current-head Chromium evidence, and does not introduce a discrete correctness or security finding; the protected Priority: P2 Review scores
Verification
How this fits togetherControl UI onboarding and recovery screens render copy controls for commands and setup codes. Those controls call the clipboard helper, then must display localized success or failure feedback without exposing the copied value. flowchart LR
A[Operator copy action] --> B[Onboarding or recovery screen]
B --> C[Shared copy feedback owner]
C --> D[Clipboard API]
D --> E[Legacy copy fallback]
C --> F[Accessible localized feedback]
F --> G[Control UI rerender]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +6, Tests +192. Total +198 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused shared-owner repair once the exact mergeable head satisfies required checks; retain the clipboard helper’s modern-API and legacy-fallback behavior and the localized feedback-reset regression coverage. Do we have a high-confidence way to reproduce the issue? Yes. Current source shows the affected controls directly calling the Boolean-returning clipboard helper without rendering a result, while the shared button owner already defines the expected busy, success, failure, and fallback behavior; the supplied current-head Chromium transcript corroborates all four paths. Is this the best way to solve the issue? Yes. Reusing the existing shared feedback owner is the narrowest maintainable fix because it eliminates duplicate clipboard-result policy while retaining the existing helper’s fallback and the components’ own labels. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e1b1d4ba7c3f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
94f04a9 to
6ce139d
Compare
|
Merged via squash.
|
* origin/main: (57 commits) fix(media): fall back when providers return empty output (#118660) fix(nextcloud-talk): allow bounded parallel room deliveries (#118692) test(state): reuse current agent database fixture (#118677) fix(scripts): bound check-file-utils git lookup (#111582) fix(slack): scope interactive conversation bindings safely (#118662) fix(agents): avoid false compaction after mid-turn precheck (#117963) fix(ui): show original filename on chat history attachment cards instead of managed UUID suffix (#118628) fix(whatsapp): preserve terminal retry exhaustion lifecycle (#118659) fix(doctor): audit every agent workspace (#111840) fix(release): skip unavailable Buzz on frozen candidates (#118670) fix(ui): surface onboarding and pairing clipboard failures (#118651) fix(config): stop plugin schemas rejecting the channel key core writes (#117992) test(memory): isolate wiki plugin fixtures (#118654) fix(line): clear default access token when removing account (#118055) feat: enable rich setup controls in custodian chat (#114631) test(ui): reuse responsive browser fixtures (#118655) chore(tui): stabilize queued-turn admission in Gateway PTY test (#118638) fix(xai): classify exhausted credits as billing (#118615) fix(otel): fail closed when configured TLS material is invalid (#118648) fix(cli): preserve gateway request errors in health JSON (#118645) ...
…118651) * fix(ui): surface onboarding and pairing clipboard failures * fix(ui): keep translated clipboard labels after feedback resets
* origin/main: (57 commits) fix(media): fall back when providers return empty output (openclaw#118660) fix(nextcloud-talk): allow bounded parallel room deliveries (openclaw#118692) test(state): reuse current agent database fixture (openclaw#118677) fix(scripts): bound check-file-utils git lookup (openclaw#111582) fix(slack): scope interactive conversation bindings safely (openclaw#118662) fix(agents): avoid false compaction after mid-turn precheck (openclaw#117963) fix(ui): show original filename on chat history attachment cards instead of managed UUID suffix (openclaw#118628) fix(whatsapp): preserve terminal retry exhaustion lifecycle (openclaw#118659) fix(doctor): audit every agent workspace (openclaw#111840) fix(release): skip unavailable Buzz on frozen candidates (openclaw#118670) fix(ui): surface onboarding and pairing clipboard failures (openclaw#118651) fix(config): stop plugin schemas rejecting the channel key core writes (openclaw#117992) test(memory): isolate wiki plugin fixtures (openclaw#118654) fix(line): clear default access token when removing account (openclaw#118055) feat: enable rich setup controls in custodian chat (openclaw#114631) test(ui): reuse responsive browser fixtures (openclaw#118655) chore(tui): stabilize queued-turn admission in Gateway PTY test (openclaw#118638) fix(xai): classify exhausted credits as billing (openclaw#118615) fix(otel): fail closed when configured TLS material is invalid (openclaw#118648) fix(cli): preserve gateway request errors in health JSON (openclaw#118645) ...
Summary
Concrete shipped user failures
Before this change, denying both the modern Clipboard API and legacy
document.execCommand("copy")left all four actions silently unchanged:Copy.Copy setup code.Copy text.Six deterministic failures reproduced these shipped paths before the owner repair.
The existing internal copy-button owner now controls the exact same busy state, localized visible text, accessible labels, success/failure reset, and monotonic attempt ownership for both icon and textual buttons. Login command rows and keyboard events delegate to the existing child button exactly once; the obsolete mobile-pairing shell callback and duplicate bypass logic are removed.
A separate real Lit lifecycle regression was also reproduced: replacing translated text children destroyed Lit's
ChildPartmarkers and caused a later locale re-render to fail. The final owner mutates the existing text node without removing framework markers; actual successful and failed actions now re-render correctly when the language changes from English to German.No secret device code, OAuth code, or pairing setup value appears in status text, accessibility labels, or errors.
Verification
ChildPart has no parentNodelocale re-render failure reproduced and repaired.Real after-fix Control UI browser proof
Reviewed commit:
94f04a9e287a3c6722bc97cc99213bd7bed63743. Ran the actual Vite-served Control UI in Playwright Chromium against its existing deterministic mocked Gateway, not jsdom. Exercised the shipped provider OAuth/device-code wizard, Telegram channel-setup note, mobile-pairing dialog, and disconnected login command row including keyboard activation.{ "result": "PASS", "commit": "94f04a9e287a3c6722bc97cc99213bd7bed63743", "engine": "Playwright Chromium", "surfaces": [ { "name": "provider-oauth-device-code", "failure": { "aria": "Copy failed", "visible": "Copy failed", "errorState": true, "copiedState": false, "modern": 1, "legacy": 1 }, "success": { "aria": "Copied!", "visible": "Copied!", "errorState": false, "copiedState": true, "modern": 2, "legacy": 1 } }, { "name": "channel-setup", "failure": { "aria": "Copy failed", "visible": "Copy failed", "errorState": true, "copiedState": false, "modern": 1, "legacy": 1 }, "success": { "aria": "Copied!", "visible": "Copied!", "errorState": false, "copiedState": true, "modern": 2, "legacy": 1 } }, { "name": "mobile-pairing", "failure": { "aria": "Copy failed", "visible": "Copy failed", "errorState": true, "copiedState": false, "modern": 1, "legacy": 1 }, "success": { "aria": "Copied!", "visible": "Copied!", "errorState": false, "copiedState": true, "modern": 2, "legacy": 1 } }, { "name": "login-connect-command", "failure": { "aria": "Copy failed", "visible": null, "errorState": true, "copiedState": false, "modern": 1, "legacy": 1 }, "success": { "aria": "Copied!", "visible": null, "errorState": false, "copiedState": true, "modern": 2, "legacy": 1 }, "keyboardActivated": true } ], "locale": { "from": "en", "to": "de", "visible": "Kopieren", "childPartErrors": 0 }, "pageErrors": 0, "blockedExternalRequests": 0 }Each actual screen first denied both modern and legacy clipboard APIs and displayed the matching accessible
Copy failedstate; allowing the modern API then displayedCopied!. The login control proved its accessible error/success state and keyboard activation. The same live provider wizard switched English to German and renderedKopierenwith zero LitChildPartor page errors. Only synthetic fixtures and sanitized booleans/counts were used; no copied values, pairing codes, tokens, credentials, or external requests.ClawSweeper rank-up disposition
openclaw/ci-gateis green, and all four hosted Chromium shards pass. Preserve this exact independently reviewed and browser-proven head instead of rebasing away its exact proof.Current-head real Chromium proof after rebase and locale-timer correction
The proof below supersedes the historical browser output above and is from the current reviewed commit
dfd577d0f69db764207e21ecd57a037319deec83, including the resolved latest-main rich-setup integration and the accepted ClawSweeper idle-label finding. Actual Vite-served Control UI plus Playwright Chromium and synthetic deterministic Gateway:{ "result": "PASS", "commit": "dfd577d0f69db764207e21ecd57a037319deec83", "copyButtonBlob": "44e50eedff813a0e1207711a99e1d22cf9af01ee", "copyButtonSha256": "d9ce929015cfc263b28eb5e44bce0fd4dd5c10a4d2f27cd57c2a87836e624602", "engine": "Playwright Chromium", "surfaces": [ { "name": "provider-oauth-device-code", "failure": { "aria": "Copy failed", "visible": "Copy failed", "errorState": true, "copiedState": false, "modern": 1, "legacy": 1 }, "success": { "aria": "Copied!", "visible": "Copied!", "errorState": false, "copiedState": true, "modern": 2, "legacy": 1 } }, { "name": "channel-setup", "failure": { "aria": "Copy failed", "visible": "Copy failed", "errorState": true, "copiedState": false, "modern": 1, "legacy": 1 }, "success": { "aria": "Copied!", "visible": "Copied!", "errorState": false, "copiedState": true, "modern": 2, "legacy": 1 }, "richSensitiveInput": { "rendered": true, "initialType": "password", "revealedType": "text", "revealAria": "Reveal value", "hideAria": "Hide value", "maskInitiallyVisible": true, "maskHiddenAfterReveal": true, "revealedIcon": "eye-off" } }, { "name": "mobile-pairing", "failure": { "aria": "Copy failed", "visible": "Copy failed", "errorState": true, "copiedState": false, "modern": 1, "legacy": 1 }, "success": { "aria": "Copied!", "visible": "Copied!", "errorState": false, "copiedState": true, "modern": 2, "legacy": 1 } }, { "name": "login-connect-command", "failure": { "aria": "Copy failed", "visible": null, "errorState": true, "copiedState": false, "modern": 1, "legacy": 1 }, "success": { "aria": "Copied!", "visible": null, "errorState": false, "copiedState": true, "modern": 2, "legacy": 1 }, "keyboardActivated": true } ], "locale": { "from": "en", "to": "de", "visible": "Kopieren", "childPartErrors": 0, "copiedReset": { "timerMs": 1500, "observedDelayMs": 1514, "visible": "Kopieren", "aria": "Kopieren", "stateCleared": true }, "errorReset": { "timerMs": 2000, "observedDelayMs": 2000, "feedbackVisible": "Copy failed", "feedbackAria": "Copy failed", "visible": "Kopieren", "aria": "Kopieren", "stateCleared": true } }, "pageErrors": 0, "blockedExternalRequests": 0 }This executes all four real screens, denied modern+legacy clipboard and successful retry, accessibility labels, login keyboard activation, and actual newly landed masked-sensitive-input reveal. Crucially, it waits for BOTH real success (1500 ms, observed 1514 ms) and failure (2000 ms) reset timers after an English-to-German rerender and proves the visible label AND aria label remain
Kopierenwith feedback state cleared. Exact source Git blob and SHA-256 are included. Zero browser/Lit errors, external requests, copied values, secrets, provider credentials, or synthetic codes were emitted.Latest exact-head ClawSweeper rank-up disposition