Skip to content

improve(ui): clarify devices and command approval copy - #192059

Merged
roboclaw-bot merged 5 commits into
mainfrom
openclaw/copy-d4
Nov 3, 2026
Merged

roboclaw-bot merged 5 commits into
mainfrom
openclaw/copy-d4

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The Devices page mixes “node,” “host,” and “device,” exposes command configuration in everyday copy, and describes read-only access using internal permission names.

User Impact

Devices and command approvals use consistent, shorter labels. Read-only guidance distinguishes an explicitly admin-capable browser that still needs approval from an admin-access requirement. Token identities and revoked status remain visible; technical roles, scopes, and command names are under collapsed “Show details.” No authorization or command policy changes.

Why This Change Was Made

Before After
Exec approvals Command approvals
Host / Gateway Device / This computer
Exec node binding / Any node Device binding / Any device
No paired devices. / Offline No paired devices yet. / Disconnected
Worker missing Device software missing
Browsing only… operator.pairing/operator.admin You can view… only admins can change…
Same read-only copy for an admin-capable browser This browser needs approval… (only with authoritative roleAllowsAdmin: true)
Allowlist and approval policy for exec host=gateway/node Choose which device’s command approvals to edit.
Host-native policy Device-managed policy

The quoted Control UI path in the command-approvals docs follows the same vocabulary. Pairing flow, native apps, protocol/config keys, and foreign locales are unchanged.

Evidence

  • Exact-head CI green at 7ffa753ab25d0ad50b6dcecf0ffa47e0a319503a: CI gate. UI shards 1/3–3/3, browser E2E, i18n, performance, and baseline ratchets passed.
  • 150 local device unit tests passed, covering the page, inventory, dialogs, approval settings, and sibling device page.
  • 14 local browser flow tests passed: dirty target switching (4), settings reload (2), token revoke/rotate/reconnect (3), device bindings (4), and alias rename (1). The synthetic visual capture also passed. Repeated after integrating main at 57cfe6a.
  • The three authoritative-access regression cases fail on the original pinned main and pass with the change.
  • i18n baseline regenerated; i18n verification, UI typecheck, touched-file oxlint/oxfmt, and diff checks passed. Consolidated duplicated pending-access test setup: net −5 test lines, no allocation added. Full-base test-line gate passed with 814 lines of slack.
  • Passing CI boot measurements: performance job: chat JS gzip 1,280,726 → 1,280,481 B (−245 B), under the 1,280,674 B cap; chat CSS 130,921 → 130,921 B; startup JS 90,756 → 90,752 B (−4 B). Request counts unchanged. An earlier local build measured chat JS at 1,280,951 B and failed; the exact published-head CI is the final gate evidence. No budget increase or bypass.
  • Fresh independent review completed; token action identity was kept visible in response. The suggestion to retain “Gateway” was not adopted because the approved glossary explicitly defines “This computer” as the Gateway’s device. Simplification pass kept the existing permission owner and view projection; no new state owner.
  • The hosted review's binding-label finding was against fd6d006…; all missed heading, combobox, option, and empty-state assertions are now updated and the four lifecycle browser tests pass.

Before — original pinned main, synthetic data, light theme

Devices before

After — synthetic data, light theme

Devices after

Deliberate limits

  • The shared Devices route subtitle stays unchanged; the scoped page controls use the approved vocabulary.
  • “Read-only here. Edit from the companion app or CLI.” stays: device-managed policy is not an admin denial.
  • Existing raw error surfaces (device loading/action errors and config/approval read errors) retain their details because F1’s shared collapsed error contract is not on the pinned base. The two local load-failure summaries now use “Couldn’t… Try again.”
  • Pairing-specific copy and native-app terminology are outside this PR. No live device or credentials were used for browser proof.
  • This PR is open and has not been merged.

Worked on by

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 23fd1e9f-00bd-4bcc-ab9a-a8c80cc75ed0
@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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 3, 2026 16:18
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Nov 3, 2026
@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: 📸 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 simplifies Devices and command-approval terminology, collapses technical details, and distinguishes browser approval from role restrictions.

Example: An administrator opens Devices to select the Gateway command policy.

  • Before: The section reads “Exec approvals,” with “Host” and “Gateway” labels.
  • After: The section reads “Command approvals,” with “Device” and “This computer” labels.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused presentation work with inspected visual evidence, one confirmed missed consumer, and additional CI failures whose causes remain unverified.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; inspected before/after browser screenshots demonstrate the main label changes with synthetic data, while role-specific guidance and token disclosures have test evidence only.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Devices mixes protocol terminology with everyday labels and gives the same read-only explanation for different access restrictions.
Reason: The maintainer-authored direction makes the page easier to understand while retaining technical details, token status, and existing operation authority.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored PR open: the copy improvements are useful, but one missed test consumer causes a confirmed CI failure.

Priority: P3
Reviewed head: fd6d006bd2d2008698725ee67c49e746254129a8

Before merge

  • Update the remaining binding lifecycle test to the new labels (P2) - Renaming the binding heading, combobox, and options leaves ui/src/e2e/device-binding-state.e2e.test.ts using “Exec node binding,” “Node,” “Any node,” and “Use default (Any node).” All four lifecycle cases fail before exercising their binding behavior, as confirmed by current-head checks-ui-e2e (1/2). Update that consumer's selectors and option labels alongside the other browser tests.

Findings

  • [P2] Update the remaining binding lifecycle test to the new labels — ui/src/i18n/locales/en-devices.ts:25-30

Tests

  • Missing end-to-end proof: The supplied screenshots show the main copy changes but do not display the read-only role variants or expanded token disclosures.
Agent review details

How this fits together

The Devices page projects Gateway inventory, permission facts, and command policies into controls; existing operation owners continue to authorize and perform mutations.

flowchart TD
  Gateway[Gateway inventory and auth] --> Page[Devices page projection]
  Catalog[English copy catalog] --> View[Devices views]
  Page --> View
  View --> Controls[Inventory and policy controls]
  Controls --> Owners[Existing operation owners]
  Owners --> Gateway
Loading

Technical review

Best possible solution:

Retain the existing presentation owners and update the remaining binding lifecycle selectors and option labels to complete the copy change.

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

The missed selector is directly visible in source and independently confirmed by current-head browser CI; no target code or tests were run during this review.

Is this the best way to solve the issue?

The implementation uses the existing locale catalog, permission facts, and disclosure components without adding competing state or authorization logic.

Full review comments:

  • [P2] Update the remaining binding lifecycle test to the new labels — ui/src/i18n/locales/en-devices.ts:25-30
    Renaming the binding heading, combobox, and options leaves ui/src/e2e/device-binding-state.e2e.test.ts using “Exec node binding,” “Node,” “Any node,” and “Use default (Any node).” All four lifecycle cases fail before exercising their binding behavior, as confirmed by current-head checks-ui-e2e (1/2). Update that consumer's selectors and option labels alongside the other browser tests.
    Confidence: 1

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 2413b2576acb.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm exec vitest run --config ui/vitest.e2e.config.ts ui/src/e2e/device-binding-state.e2e.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 6c3a972 adds ui/src/pages/devices/view-inventory.tsx:400 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6c3a9723e9e9; files: ui/src/pages/devices/view-inventory.tsx)

PR surface

Source +29, Tests +15, Docs 0, Other +3. Total +47 across 19 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 99 70 +29
Tests 8 85 70 +15
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 0 +3
Total 19 188 141 +47

Labels

Label changes:

  • add P3: This is a terminology and disclosure improvement with a focused test-consumer repair, without an established urgent runtime failure.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 a terminology and disclosure improvement with a focused test-consumer repair, without an established urgent runtime failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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:37 AM ET / 16:37 UTC.

roboclaw-bot and others added 3 commits November 3, 2026 16:57
Integrate the pinned base for the diagnosed UI performance gate.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 960b9106-1c7b-404c-aa4e-e17e663db1f6
@roboclaw-bot
roboclaw-bot merged commit 487b919 into main Nov 3, 2026
100 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/copy-d4 branch November 3, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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.

1 participant