Skip to content

improve(ui): clarify device connection and setup copy - #192046

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
openclaw/copy-d2
Nov 4, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
openclaw/copy-d2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Device setup uses inconsistent “machine”, “node host”, and “pair” labels, exposes permission scope names, and gives unhelpful setup errors.

User Impact

People can find Connect a device, understand access choices, create replacement codes, and distinguish missing admin access from device-pairing access. Authorization and pairing behavior are unchanged.

Why This Change Was Made

Applies the approved Control UI glossary to connection and pairing setup and documentation quoting their labels.

Before After
Connect a machine / Pair device / Pair a device Connect a device
Mint fresh code / Minting… Create new code / Creating code…
Node host Device
Connect a computer as a command and capability host. Let agents run commands and use tools on this device.
Administrator access is required to create setup codes. You need admin access to create setup codes.
Could not create a setup code. Couldn’t create a setup code. Try again.

Local fallback messages live in English locales. Connection errors separate summary and raw detail; clipboard errors explain manual copying. Android’s system label “Pair device with pairing code” stays unchanged.

Evidence

  • 72 targeted unit tests and six mocked-Gateway browser tests pass: full/limited/device choices, capability denial, copy/cancel, expiry/regeneration, unknown setup outcomes, and connection commands. Baseline connection browser tests also pass.
  • pnpm ui:i18n:baseline and pnpm ui:i18n:verify pass; no generated baseline change.
  • Touched-file oxfmt/oxlint, pnpm tsgo:ui, and git diff --check pass. Net test-line growth: zero.
  • Boot comparison against 3c43252c068c78b57e4024c057c1d3797a57acbd: JS 1,279,580 → 1,279,662 bytes gzip (+82 bytes), 20 requests; CSS 130,890 → 130,890 bytes gzip (+0), three requests. Budget passes.
  • Fresh independent review’s Android-label finding is fixed. Simplification retained existing lifecycle and authorization owners.
  • Inspected, cropped, light-theme screenshots use synthetic data. Full visual proof.
Connection dialog before After
Before After
Pairing choices before After
Before After

Gaps and follow-up

F1’s shared “Show details” contract is not on this base. Raw connection props.error, pairing lifecycle result.message, and clipboard formatUiError(error) remain visible in their existing surfaces; connection summary/detail are separate paragraphs. No private replacement error component was added. Native app UI, technical CLI terminology, historical release notes, and model-authored text fixtures are out of scope.

Worked on by

Landing integration preserves the current browser-approval/admin distinction and device-binding copy, the shared dialog shell, and D1 device-capacity wording. The approved connection error remains separate summary/detail paragraphs. The three affected connection-dialog tests, i18n verification, formatting, and diff checks passed; broader existing proof was reused.

roboclaw-bot and others added 2 commits November 3, 2026 15:58
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 00b34d6a-1132-4397-afd5-e8c58b1ecce1
@roboclaw-bot

roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

Device connection copy — visual proof

Inspected, cropped, light-theme captures from the mocked Control UI with synthetic data. Before: origin/main 3c43252c068c78b57e4024c057c1d3797a57acbd. After: this change.

Connection dialog

Before

Connection dialog before

After

Connection dialog after

Pairing access choices

Before

Pairing dialog before

After

Pairing dialog after

@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android app: ios App: ios app: web-ui App: web-ui size: S labels Nov 3, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 3, 2026 16:01
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR standardizes device connection labels, improves setup messages, and updates matching documentation and tests.

Example: An administrator opens the device setup dialog.

  • Before: The dialog says “Pair a device” and offers “Node host.”
  • After: The dialog says “Connect a device” and offers “Device” with an explanation of command and tool access.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, visually demonstrated copy cleanup with one concrete error-path wiring defect.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots exercise the rendered connection dialog and pairing choices in the mocked Control UI with synthetic data, proving the central visible terminology changes; clipboard-error behavior is assessed separately in the finding.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Inconsistent device terminology and technical setup messages make connection choices harder to understand.
Reason: The maintainer-authored direction approves a modest usability improvement that reuses existing behavior and ownership.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep open for the approved terminology cleanup; this PR needs a focused clipboard-feedback correction before merge.

Priority: P3
Reviewed head: f857e7f9ee9d1bfea07677df1e7382dd09f156c4

Before merge

  • Wire manual-copy guidance to the clipboard failure path (P2) - The new copyFailed message is used inside refresh(), which creates or refreshes setup codes and never copies anything. Clicking “Copy setup code” instead calls handleCopyButton directly; when navigator.clipboard.writeText rejects and the legacy copy fallback returns false, that helper still displays only “Copy failed.” Consequently the advertised manual-copy guidance is unreachable for its intended input, while this catch labels a setup-refresh rejection as a copying failure. Restore an accurate refresh diagnostic and deliver the guidance through the existing clipboard result path.
  • Complete next step - The PR author should resolve the GitHub-reported merge conflict and rerun checks affected by its resolution.
  • Explain or restore the original intent of Setup refresh rejection diagnostic - fix(ui): present device pairing retries with Solid actions #180560: Present the admitted setup refresh through a Solid action and report its rejection; this PR supplies no reason for describing that operation as copying.

Findings

  • [P2] Wire manual-copy guidance to the clipboard failure path — ui/src/pages/devices/view-pairing.tsx:118-120

Provenance

Tests

  • Missing end-to-end proof: The supplied screenshots cover command and selection states, but no capture or red/green regression demonstrates denied-clipboard recovery.
Agent review details

How this fits together

The Control UI presents Gateway-owned device setup and connection operations, translating their lifecycle outcomes into dialogs, commands, and recovery messages.

flowchart LR
  A[Administrator] --> B[Control UI dialogs]
  C[English catalogs] --> B
  B --> D[Existing setup owners]
  D --> E[Gateway pairing RPCs]
  E --> D
  B --> F[Shared clipboard owner]
Loading

Technical review

Best possible solution:

Keep the existing setup and clipboard owners, and attach manual-copy recovery guidance to actual clipboard failure while preserving accurate setup-refresh diagnostics.

Do we have a high-confidence way to reproduce the issue?

Source tracing establishes that a failed clipboard write and failed legacy fallback return through handleCopyButton and cannot reach the new message in refresh(); no target code was executed.

Is this the best way to solve the issue?

Updating the existing catalogs and consumers is the smallest complete approach, but the clipboard guidance must be connected to its actual operation.

Full review comments:

  • [P2] Wire manual-copy guidance to the clipboard failure path — ui/src/pages/devices/view-pairing.tsx:118-120
    The new copyFailed message is used inside refresh(), which creates or refreshes setup codes and never copies anything. Clicking “Copy setup code” instead calls handleCopyButton directly; when navigator.clipboard.writeText rejects and the legacy copy fallback returns false, that helper still displays only “Copy failed.” Consequently the advertised manual-copy guidance is unreachable for its intended input, while this catch labels a setup-refresh rejection as a copying failure. Restore an accurate refresh diagnostic and deliver the guidance through the existing clipboard result path.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e5bd90ed866f.

Provenance checked

  • Mobile pairing labels, access choices, and lifecycle messages keeps the original intent (feat: pair mobile devices from the Control UI #94672: Provide browser-based mobile setup through the existing administrator-scoped setup-code owner; later lifecycle work made success, expiry, and recovery explicit.)
  • New Session device connection dialog keeps the original intent (feat(ui): connect machines from the Where picker #122635: Present the existing one-paste onboarding command and replacement-code action without changing Gateway or CLI behavior.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • node scripts/run-vitest.mjs ui/src/pages/devices/view-pairing.test.tsx ui/src/lib/device-pair-setup.test.ts
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/mobile-pairing.e2e.test.ts
  • pnpm ui:i18n:verify
  • pnpm tsgo:ui
  • git diff --check

What I checked:

PR surface

Source +9, Tests 0, Docs 0. Total +9 across 22 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 54 45 +9
Tests 7 32 32 0
Docs 9 11 11 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 22 97 88 +9

Labels

Label changes:

  • add P3: This is terminology and recovery-copy polish with existing connection and authorization behavior preserved.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is terminology and recovery-copy polish with existing connection and authorization behavior preserved.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 3, 2026, 11:18 AM ET / 16:18 UTC.

@openclaw-barnacle openclaw-barnacle Bot closed this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 3, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 3, 2026
roboclaw-bot and others added 4 commits November 4, 2026 12:34
Use create-code guidance for refresh and manual-copy guidance only for clipboard failures.

Co-authored-by: vyctorbrzezowski <[email protected]>
Use the shared F1 toast detail contract for the original diagnostics.

Co-authored-by: vyctorbrzezowski <[email protected]>
@vyctorbrzezowski
vyctorbrzezowski merged commit e3d69a2 into main Nov 4, 2026
31 of 32 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-d2 branch November 4, 2026 13:30
tideclaw-bot pushed a commit that referenced this pull request Nov 4, 2026
Remove the duplicate terminal close-session title introduced by #192092 and use the boolean copy result directly after #192046. Preserve all displayed copy and behavior; no baseline or ignore changes.

(cherry picked from commit 769180b)

Co-authored-by: RomneyDa <[email protected]>
steipete added a commit that referenced this pull request Nov 4, 2026
Remove the duplicate terminal close-session title introduced by #192092 and use the boolean copy result directly after #192046. Preserve all displayed copy and behavior; no baseline or ignore changes.
RomneyDa added a commit that referenced this pull request Nov 5, 2026
* fix: stop line-limit checks from blocking release branches

Co-authored-by: RomneyDa <[email protected]>

* fix: stop line-limit checks from blocking release branches

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 6b50db8b-7990-4791-a9e5-525ecac0a10d

* docs: shorten release line-limit exemption note

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 7c3e25e2-c1a9-4809-962c-2d17afb9d853

* test: isolate release ratchet fixture from CI environment

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: b334093e-1ee3-4d15-bd92-3115c4aa1345

* fix(ui): restore static checks after copy updates

Remove the duplicate terminal close-session title introduced by #192092 and use the boolean copy result directly after #192046. Preserve all displayed copy and behavior; no baseline or ignore changes.

(cherry picked from commit 769180b)

Co-authored-by: RomneyDa <[email protected]>

* test(ui): preserve dialog exports in cloud stop fixture

Preserve the real confirm-dialog exports while mocking the cloud-stop confirmation. Allocate exactly the three added fixture lines; inherited test-budget debt remains unchanged.

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 8ac634d9-92e5-4d53-ab98-9314d3ae47bf

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: de552342-bfcd-43ce-8fa7-077930f93ce3

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 04f83cf8-9ec2-4976-89ec-9c42438ee4a0

* test(ui): match current localized copy in assertions

Preserve independent expected values for copy-success feedback and the French private/future-results warning. Both failures reproduced on the prior head and pass with the corrected literals.

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 0e2a0a2c-cfdc-4ea9-8e25-7e8d84e36a34

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: c210516c-7c29-4b20-b091-92c71b03cd6a

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
improve(ui): clarify device connection and setup copy

Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
Remove the duplicate terminal close-session title introduced by openclaw#192092 and use the boolean copy result directly after openclaw#192046. Preserve all displayed copy and behavior; no baseline or ignore changes.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…192806)

* fix: stop line-limit checks from blocking release branches

Co-authored-by: RomneyDa <[email protected]>

* fix: stop line-limit checks from blocking release branches

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 6b50db8b-7990-4791-a9e5-525ecac0a10d

* docs: shorten release line-limit exemption note

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 7c3e25e2-c1a9-4809-962c-2d17afb9d853

* test: isolate release ratchet fixture from CI environment

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: b334093e-1ee3-4d15-bd92-3115c4aa1345

* fix(ui): restore static checks after copy updates

Remove the duplicate terminal close-session title introduced by openclaw#192092 and use the boolean copy result directly after openclaw#192046. Preserve all displayed copy and behavior; no baseline or ignore changes.

(cherry picked from commit 769180b)

Co-authored-by: RomneyDa <[email protected]>

* test(ui): preserve dialog exports in cloud stop fixture

Preserve the real confirm-dialog exports while mocking the cloud-stop confirmation. Allocate exactly the three added fixture lines; inherited test-budget debt remains unchanged.

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 8ac634d9-92e5-4d53-ab98-9314d3ae47bf

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: de552342-bfcd-43ce-8fa7-077930f93ce3

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 04f83cf8-9ec2-4976-89ec-9c42438ee4a0

* test(ui): match current localized copy in assertions

Preserve independent expected values for copy-success feedback and the French private/future-results warning. Both failures reproduced on the prior head and pass with the corrected literals.

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 0e2a0a2c-cfdc-4ea9-8e25-7e8d84e36a34

* Publish openclaw/release-line-limit-exemption

Worked on by:
- @RomneyDa

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: c210516c-7c29-4b20-b091-92c71b03cd6a

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios app: web-ui App: web-ui docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants