Skip to content

improve(ui): clarify new session devices and workspaces - #192044

Merged
vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/copy-d1
Nov 4, 2026
Merged

vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/copy-d1

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

New session setup mixes device, machine, host, and worker terminology, and some folder-access messages expose internal permission scopes or suggest the wrong recovery path.

User Impact

  • Device and workspace choices use the approved Control UI vocabulary.
  • Folder access explains whether admin, write, or read access is needed without showing internal scope names.
  • Native CLI setup still explicitly uses the selected device’s own account and configuration and does not create an OpenClaw session.

Why This Change Was Made

This is D1 of the approved Control UI copy pass. It is limited to new-session setup English, its access-reason rendering, matching assertions, and documentation that describes these controls. No protocol/config/i18n key names or foreign locales changed.

Before After
OpenClaw worker Cloud device
Gateway host / Local This computer
Runs on your gateway Runs on this computer
Syncs {folder} to the selected runner Syncs {folder} to the selected device
Machine Device size
No matching folders No folders match your search.
Existing absolute folder on this node Existing absolute folder on this device
Choose a native CLI host Choose a device for the native CLI
Reusable host / Disposable host Reusable device / Disposable device
Checking Git … requires {scope} access You need admin/write/read access to check Git for this folder.
Inbox → Limited access → request admin → Devices You need admin access to browse outside agent workspaces.
Cloud worker provider Cloud provider

“Cloud device” is used by the required-placement control only after it resolves the selected profile from the cloud profile catalog. Hosted workspaces remain distinct. The old access-recovery instruction is removed; this code already has no navigation handler to that obsolete flow.

Evidence

  • Focused new-session suite: 69 files, 769 tests passed; final access-reason cases: 43 tests passed; final hosted-workspace, submit-gate, and Chat placement follow-up: 62 tests passed.
  • Mocked Control UI E2E: 56 setup cases plus 13 group-default/worker-inference cases passed (failed old-copy assertions were updated and rerun). Six real-browser placement-control tests also passed. Coverage includes local, paired-device, cloud-size, native CLI, workspace validation, and unavailable choices.
  • English baseline refreshed; no baseline-file change was needed. pnpm ui:i18n:verify passed.
  • Scoped oxfmt/oxlint and git diff --check passed.
  • pnpm tsgo:ui, documentation glossary sanity, and documentation links passed (16,400 internal links, 0 broken).
  • Fresh independent review completed; corrected two shared-message semantics so an unavailable hosted choice does not imply all hosted choices failed, and a general catalog/selection failure does not incorrectly require a Gateway update. Added a mixed-availability regression.
  • Forty-one additional test lines cover distinct admin/write/read browser cases, mixed hosted-workspace availability, and formatter wrapping of updated copy assertions; allocation is recorded in config/test-lines-allocations/new-session-device-copy.txt.
  • pnpm ui:check-performance:base 3c43252c068c78b57e4024c057c1d3797a57acbd passed. Gzip bytes: Chat boot JS 1,279,580 → 1,279,606 (+26 B), 20 requests unchanged; Chat boot CSS 130,890 → 130,890; New session boot JS 794,466 → 794,461 (−5 B), 15 requests unchanged; New session CSS 95,757 → 95,757. Startup JS 90,543 → 90,565 (+22 B), startup CSS unchanged at 35,997.
  • Before/after screenshots: synthetic mocked Control UI, light theme, cropped to the affected controls; inspected for fit and privacy. Attached below.

Scope notes and gaps

  • connectMachine* copy belongs to the separate connect flow and is unchanged.
  • Runtime catalog aliases remain with their owning runtime copy pass. No raw {error} / {reason} / {message} interpolation exists in the setup catalog changed here. The shared F1 error-details contract was not present on the selected base.
  • The setup screen does not render newSession.runsOn; its only direct consumer is the existing Chat placement fallback. That separate surface is unchanged rather than expanding this PR.
  • No native app files, plugin-owned copy, foreign locales, or translation memory changed.

Worked on by

Before: device picker

After: device picker

Before: cloud device size

After: cloud device size

Landing repair updates only failed copy expectations and selectors, preserves every behavioral assertion, and fixes the setup-catalog formatting. The 23 selected owner/consumer tests and 7 cloud-target browser tests passed, as did i18n baseline/verification and formatting. The final 41-line allocation includes test-support assertions; the guard confirms the unchanged 110-line base debt remains. No broader suite was repeated.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e26a8694-502f-4c5a-95db-7b991576d4f6
@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: web-ui App: web-ui gateway Gateway runtime size: M labels Nov 3, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 3, 2026 16:01
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Media proof is not complete: the four screenshot links in the PR body currently return HTTP 404. The synthetic light-theme before/after captures were inspected locally, but the fallback GitHub upload endpoint is also unavailable. Working screenshot attachments are still required before merge.

@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 clarifies device, cloud, workspace, and folder-access wording in New Session and updates related documentation and tests.

Example: Choose the aws cloud profile and inspect its hardware options.

  • Before: The options appear under “Machine.”
  • After: The options appear under “Device size.”

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful, visually demonstrated copy improvements are held back by a confirmed CI regression, another deterministic assertion mismatch, and incomplete access-recovery wording.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the actual Control UI device picker and cloud-size controls with synthetic data in light theme; the changed labels fit and disclose no private data, while reported browser suites support the remaining copy paths.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: New Session mixes device terminology and exposes internal permission scopes or obsolete access-recovery instructions.
Reason: The maintainer-authored direction provides clearer setup vocabulary while preserving existing placement and authorization contracts.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep this maintainer-authored PR open: the copy improvements are useful, but incomplete assertion updates break validation and permission errors lose recovery guidance.

Priority: P3
Reviewed head: e9e532cd3c1dc84ade8207c42bddc8f168837dcb

Before merge

  • Finish migrating assertions that consume the renamed setup copy (P2) - Changing the shared catalog leaves multiple active consumers expecting the old text. Exact-head CI already times out at session-placement-module-boundaries.test-support.ts:180 waiting for “Machine”; the same helper still expects “selected runner” at line 250. The cloud-target browser assertion at line 48 also requires “Machine,” environment-picker-loading waits for it, and projects-places still expects “Runs on your gateway” and “Gateway · …” placeholders. Update these consumers together so the valid UI does not fail its existing regression suites.
  • Match the native-CLI regression to the final catalog message (P2) - This scenario sets startTerminal to false and clears catalogLabel, making catalog.isRoutePending true. Submission then records the route-pending explanation from newSession.catalogUnavailable: “Couldn’t use this device or workspace. Refresh and try again.” The newly asserted Gateway-update message exists nowhere in the production catalog, so this regression necessarily fails. Assert the final route-pending message while retaining the no-launch and no-session-creation checks.
  • Retain a next action in scoped permission-denial messages (P2) - When Git discovery returns operator.admin, operator.write, or operator.read denial, Start remains blocked but these replacement messages only state the required access. The previous explanation told the user whom to ask, and the unscoped denial still does. Add a supported next action, such as asking an admin for access or choosing an accessible folder, without restoring internal scope names or the obsolete Inbox flow; apply the same correction to browseRequiresRead, browseRequiresWrite, and browseRequiresAdmin. This preserves the repository requirement that errors explain what happened and what the user should do next.

Findings

  • [P2] Finish migrating assertions that consume the renamed setup copy — ui/src/e2e/session-placement-module-boundaries.test-support.ts:180
  • [P2] Match the native-CLI regression to the final catalog message — ui/src/pages/new-session/draft-native-terminal-start.test.ts:299-301
  • [P2] Retain a next action in scoped permission-denial messages — ui/src/i18n/locales/en-new-session-setup.ts:68-70
Agent review details

How this fits together

New Session combines Gateway catalogs, placement eligibility, and folder-discovery results into device and workspace controls; the changed catalog and formatters produce their English labels and blocked-action explanations.

flowchart LR
  A[Gateway catalogs] --> B[Placement owners]
  C[Folder discovery] --> D[Access reason formatters]
  B --> E[New Session controls]
  D --> E
  F[English setup catalog] --> D
  F --> E
Loading

Technical review

Best possible solution:

Keep the existing catalog and formatter owners, preserve actionable access guidance, and finish migrating assertions to the final wording.

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

The original terminology and scope-rendering problems are visible in fetched main; exact-head CI independently reproduces one incomplete assertion migration, and source tracing establishes the native-CLI expectation mismatch.

Is this the best way to solve the issue?

Updating the existing English catalog and access formatters is the smallest complete approach; no new state or abstraction is needed, but the final copy must remain actionable and every affected assertion must follow it.

Full review comments:

  • [P2] Finish migrating assertions that consume the renamed setup copy — ui/src/e2e/session-placement-module-boundaries.test-support.ts:180
    Changing the shared catalog leaves multiple active consumers expecting the old text. Exact-head CI already times out at session-placement-module-boundaries.test-support.ts:180 waiting for “Machine”; the same helper still expects “selected runner” at line 250. The cloud-target browser assertion at line 48 also requires “Machine,” environment-picker-loading waits for it, and projects-places still expects “Runs on your gateway” and “Gateway · …” placeholders. Update these consumers together so the valid UI does not fail its existing regression suites.
    Confidence: 1
  • [P2] Match the native-CLI regression to the final catalog message — ui/src/pages/new-session/draft-native-terminal-start.test.ts:299-301
    This scenario sets startTerminal to false and clears catalogLabel, making catalog.isRoutePending true. Submission then records the route-pending explanation from newSession.catalogUnavailable: “Couldn’t use this device or workspace. Refresh and try again.” The newly asserted Gateway-update message exists nowhere in the production catalog, so this regression necessarily fails. Assert the final route-pending message while retaining the no-launch and no-session-creation checks.
    Confidence: 0.99
  • [P2] Retain a next action in scoped permission-denial messages — ui/src/i18n/locales/en-new-session-setup.ts:68-70
    When Git discovery returns operator.admin, operator.write, or operator.read denial, Start remains blocked but these replacement messages only state the required access. The previous explanation told the user whom to ask, and the unscoped denial still does. Add a supported next action, such as asking an admin for access or choosing an accessible folder, without restoring internal scope names or the obsolete Inbox flow; apply the same correction to browseRequiresRead, browseRequiresWrite, and browseRequiresAdmin. This preserves the repository requirement that errors explain what happened and what the user should do next.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Lazy setup English catalog keeps the original intent (d72c1be: Keep New Session-only copy outside Chat startup while registering it synchronously at consumers.)
  • Denied Git discovery explanations changes intended behavior with a stated reason (8f0973e: Distinguish denied discovery from retryable failures, preserve draft isolation, and explain how to obtain access.)
  • Searchable destination terminology keeps the original intent (6c918f6: Make execution destinations searchable and understandable without changing placement or scheduling.)
  • Hosted-workspace explanations keeps the original intent (b19bfee: Expose provider-hosted workspaces separately from devices and cloud profiles while retaining runtime-specific availability.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/pages/new-session/cloud-target.browser.test.ts ui/src/pages/new-session/draft-native-terminal-start.test.ts ui/src/pages/new-session/place-browser-state.test.ts ui/src/pages/new-session/submit-gates.test.ts --maxWorkers=1
  • pnpm test:ui:e2e ui/src/e2e/boot-module-boundaries.e2e.test.ts ui/src/e2e/new-session-page.environment-picker-loading.e2e.test.ts ui/src/e2e/new-session-page.projects-places.e2e.test.ts ui/src/e2e/session-placement.move.e2e.test.ts
  • pnpm ui:i18n:verify
  • git diff --check

What I checked:

Likely related people:

  • Doksanbir: Raw commit 8f0973e adds ui/src/pages/new-session/submit-gates.ts:68 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8f0973e37405; files: ui/src/pages/new-session/submit-gates.ts)
  • Patrick Erichsen: Raw commit ae21338 adds ui/src/i18n/locales/en-new-session-setup.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: ae21338266a7; files: ui/src/i18n/locales/en-new-session-setup.ts)
  • RoboClaw: Raw commit b19bfee adds ui/src/i18n/locales/en-new-session-setup.ts:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b19bfee65b2a; files: ui/src/i18n/locales/en-new-session-setup.ts)

PR surface

Source +14, Tests +33, Docs +4, Other +2. Total +53 across 35 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 80 66 +14
Tests 27 106 73 +33
Docs 4 21 17 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 35 209 156 +53

Labels

Label changes:

  • add P3: The PR improves terminology and diagnostic clarity without changing placement, authorization, configuration, or persisted state.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: The PR improves terminology and diagnostic clarity without changing placement, authorization, configuration, or persisted state.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • 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:19 AM ET / 16:19 UTC.

roboclaw-bot and others added 3 commits November 4, 2026 12:33
Preserve the approved copy pattern and behavior while correcting the referenced action or computer.

Co-authored-by: vyctorbrzezowski <[email protected]>
@vyctorbrzezowski
vyctorbrzezowski merged commit 2a16e47 into main Nov 4, 2026
23 of 24 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-d1 branch November 4, 2026 13:28
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
)

improve(ui): clarify new session devices and workspaces

Co-authored-by: vyctorbrzezowski <[email protected]>
steipete added a commit that referenced this pull request Nov 5, 2026
…193162)

* fix(ui): align mobile session width checks with device labels

PR #192044 intentionally renamed Local to This computer. Preserve its layout and check the existing half-row picker contract instead of the stale 100 px ceiling. Account for seven lines of causal comments and relative-width assertions.

* test(ui): reuse measured mobile picker geometry

Keep the assertion repair below the existing test-line ceiling without changing the shared baseline or requesting extra allocation.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…penclaw#193162)

* fix(ui): align mobile session width checks with device labels

PR openclaw#192044 intentionally renamed Local to This computer. Preserve its layout and check the existing half-row picker contract instead of the stale 100 px ceiling. Account for seven lines of causal comments and relative-width assertions.

* test(ui): reuse measured mobile picker geometry

Keep the assertion repair below the existing test-line ceiling without changing the shared baseline or requesting extra allocation.
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 gateway Gateway runtime 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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.

2 participants