Skip to content

improve(ui): simplify environment picker and cloud configuration - #145183

Merged
Patrick-Erichsen merged 10 commits into
mainfrom
codex/compact-environment-picker
Sep 12, 2026
Merged

Patrick-Erichsen merged 10 commits into
mainfrom
codex/compact-environment-picker

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The New Session environment picker mixes destination selection with long device details and separate cloud configuration lists. Users cannot quickly tell which devices are usable or what a first cloud selection will choose.

Why This Change Was Made

Group Local, Your devices, and Cloud in a compact searchable picker. Keep the local gateway name and device-specific icons, sort usable devices first, and reveal details on hover. Cloud configuration opens beside its provider as a content-sized card with fixed-width choices, up to four columns, and dashed default suggestions that become solid selections on the first click.

User Impact

  • Search is focused on open; only the environment list scrolls, with fades indicating more results.
  • Choose automatically is the first plain row in Your devices, visible only with two or more devices. Its shuffle icon is muted; an adjacent info button explains routing. Selecting Auto closes the picker, and choosing a specific destination replaces Auto.
  • With no devices, Your devices offers Connect a device to admins. That action disappears once devices exist.
  • Cloud rows show provider names without a repeated Cloud prefix. The selected row includes a muted OS/machine summary; the closed trigger keeps the provider name.
  • Choosing a cloud option activates that provider, its displayed defaults, and the chosen setting in one click. Unavailable OS choices are hidden.
  • Device cards show OS, capabilities, and capacity when usable; blocked devices show their reason/remediation. Offline devices do not show redundant hover cards.

Evidence

56-second walkthrough: baseline, local/device details, unavailable devices, cloud defaults and one-click selection, machine changes, selecting/leaving Auto, search/no results, and no connected devices.

proof.mp4
Desktop and mobile before/after states

Before and after — desktop main

Before and after — desktop states

Before and after — mobile main

Before and after — mobile states

One device and large catalogs

Auto is hidden with one device. A synthetic catalog of 8 OS choices and 64 machine sizes wraps to four columns and scrolls to the last choice.

one device auto hidden

large catalog top

large catalog bottom

Touch access to device details

The info button opens device details without selecting a destination. Selecting the device closes its card. Verified in touch emulation as well as desktop hover.

Touch device details

Captured from the real Control UI with deterministic sample gateway data. Baseline is commit 58a6953549d011ffe44dcc3a7f3290b50e64b349; after captures use this PR's final implementation. Surrounding page content is masked. This is UI interaction proof, not live cloud provisioning.

Validation: 160 targeted tests covering the picker, cloud configuration, draft placement state, and New Session page; UI typecheck, i18n verification, and stylesheet lint; 32 affected browser tests. Final autoreview found no actionable P0–P2 findings. CI status is tracked on this PR.

@clawsweeper

clawsweeper Bot commented Sep 11, 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.

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 11, 2026 19:08
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Sep 11, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 7:03 PM ET / 23:03 UTC (Revision 3).

ClawSweeper review

What this changes

Simplifies the New Session destination picker with grouped environments, accessible device details, and inline cloud operating-system and machine choices.

Merge readiness

✅ Ready for maintainer review

The prior touch-access, nested-selector Escape, and documentation findings are addressed. No new blocking defect was found. This protected PR retains useful changes beyond the merged compact-picker work.

Priority: P2
Reviewed head: a56a7619ef9375e0c677f3b7711fa93c78c0bd03

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent UI improvement with useful visual evidence and the previous actionable findings resolved.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop/mobile captures from the running Control UI show the changed picker, detail cards, and cloud choices with deterministic Gateway data. They substantiate the visual change; video and additional touch-image inspection were limited by host tooling and retrieval failures.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected desktop/mobile captures from the running Control UI show the changed picker, detail cards, and cloud choices with deterministic Gateway data. They substantiate the visual change; video and additional touch-image inspection were limited by host tooling and retrieval failures.
Evidence reviewed 11 items Reviewed source identity: Inspected the introduced delta from pinned base 304261a to the checked-out PR head. The working tree remained clean. The supplied stale test merge was not used to infer removal of current-main behavior.
Touch-access finding addressed: Available compact rows now include a separate details button inside an open-on-click tooltip trigger; coarse-pointer CSS exposes that button without selecting the destination. The existing tooltip owner handles click revelation and dismissal.
Earlier Escape finding no longer applies: The earlier reviewed source used nested select-picker controls inside tooltip cards. Current cloud configuration uses direct option buttons, removing that competing Escape owner. The earlier file was retrieved through GitHub after local historical blob inspection failed.
Findings None None.
Security None None.

How this fits together

The Control UI receives available devices and cloud profiles from the Gateway and lets users choose where a new session runs. The picker passes selections to the existing draft placement owner before session creation and dispatch.

flowchart LR
  A[Gateway environment catalog] --> B[Placement eligibility]
  B --> C[Grouped destination picker]
  C --> D[Device details]
  C --> E[Cloud configuration]
  C --> F[Draft placement state]
  E --> F
  F --> G[Session creation and dispatch]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +611, Tests +440, Docs +4. Total +1055 across 24 files.

View PR surface stats
Area Files Added Removed Net
Source 12 895 284 +611
Tests 10 720 280 +440
Docs 2 10 6 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 24 1625 570 +1055

Review metrics

Metric Value Why it matters
Production versus test growth Production TypeScript/CSS +590 lines net; tests +440 lines net The stated growth supports grouped presentation, accessible detail cards, and cloud option controls within existing state ownership.

Technical review

Best possible solution:

Keep destination selection and cloud choices in the existing placement owner, with device details accessible before selection on both keyboard and touch.

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

Not applicable as a standalone bug reproduction: this is an interaction improvement, supported by source comparisons and inspected before-and-after UI captures.

Is this the best way to solve the issue?

Yes. The updated branch reuses placement and tooltip owners, removes the problematic nested selectors, and preserves the shared Move Session controls.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This improves a bounded session-setup interaction without evidence of an urgent runtime regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected desktop/mobile captures from the running Control UI show the changed picker, detail cards, and cloud choices with deterministic Gateway data. They substantiate the visual change; video and additional touch-image inspection were limited by host tooling and retrieval failures.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected desktop/mobile captures from the running Control UI show the changed picker, detail cards, and cloud choices with deterministic Gateway data. They substantiate the visual change; video and additional touch-image inspection were limited by host tooling and retrieval failures.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected desktop/mobile captures from the running Control UI show the changed picker, detail cards, and cloud choices with deterministic Gateway data. They substantiate the visual change; video and additional touch-image inspection were limited by host tooling and retrieval failures.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-11T19:22:08.278Z sha e90dc8c :: blocked before merge. :: [P2] Preserve access to device details before touch selection | [P2] Let nested cloud selectors consume Escape before the detail card | [P3] Update the placement guide for the new cloud presentation
  • reviewed 2026-09-11T22:50:12.051Z sha e90dc8c :: blocked before merge. :: [P2] Preserve access to device details before touch selection | [P2] Let nested cloud selectors consume Escape before the detail card | [P3] Update the placement guide for the new cloud presentation

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime labels Sep 11, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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. labels Sep 11, 2026
@Patrick-Erichsen
Patrick-Erichsen enabled auto-merge (squash) September 11, 2026 23:58
steipete added a commit that referenced this pull request Sep 12, 2026
Clear baseline CI failures introduced by #145183: reuse the existing picker fixture, test cloud configuration through its production renderer, and remove the unused Connect menu renderer.
steipete added a commit that referenced this pull request Sep 12, 2026
Clear the existing cursor-policy failure from #145183 without weakening its regression test.
steipete added a commit that referenced this pull request Sep 12, 2026
… picker (#145463)

Repair New Session environment-picker proof captures in three e2e files. Target the outer picker popup and capture full cloud configuration cards with the selected machine visible, avoiding strict-locator failures and cropped screenshots.

Preserve the existing interaction and dispatch assertions. Four capture-enabled cases failed before and passed after in the existing regression proof; native landing verifies exact-head hosted CI.

Refs #145183 #145415
steipete added a commit that referenced this pull request Sep 12, 2026
* test: cover transcript cold storage in release Docker lanes

* test: remove stale cloud picker test seams

Clear baseline CI failures introduced by #145183: reuse the existing picker fixture, test cloud configuration through its production renderer, and remove the unused Connect menu renderer.

* test: preserve historical transcript fixture modification times

Doctor imports filesystem mutation time rather than timestamps inside messages. Date the legacy files before import, and handle CLI failure diagnostics without adding a lint suppression or retaining credential-bearing command arguments.

* fix: keep cold sessions available to Activity title probes

Handle cold transcripts at the optional title-reader boundary without restoring payloads or caching missing previews. Verify real archival, mixed hot/cold listings and cache recovery; extend packaged release proof across restart and portable backup recovery. Preserve JSON CLI errors from stdout in the test harness.

* fix(ui): use the action cursor for session details

Clear the existing cursor-policy failure from #145183 without weakening its regression test.

* test: preserve frozen release targets in cold-storage lanes

Share capability resolution with source preflight and omit only unsupported cold subcases under the existing explicit frozen-target policy. Keep current coverage required, isolate ordinary retention in the live fixture, and strengthen fixture typing without suppressions.

* test: complete cold-storage release entrypoint contracts

Register the shell entrypoints for dependency analysis, type the frozen-source fixture cases explicitly, and align existing cloud test callback ordering with the same repair now on main.

* test: isolate archived recall from external tool policy

* test: retain the cloud machine locator for proof capture
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
…nclaw#145183)

* fix(ui): compact environment picker and label hover details

* improve(ui): clarify environment details and cloud controls

* fix(ui): handle absent media queries and keep select helpers private

* improve(ui): refine environment selection and cloud defaults

* fix(ui): refine environment picker destinations

* style(ui): format environment picker

* fix(ui): keep environment picker lightweight

* style(ui): format picker controls

* style(ui): format picker controls
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
… picker (openclaw#145463)

Repair New Session environment-picker proof captures in three e2e files. Target the outer picker popup and capture full cloud configuration cards with the selected machine visible, avoiding strict-locator failures and cropped screenshots.

Preserve the existing interaction and dispatch assertions. Four capture-enabled cases failed before and passed after in the existing regression proof; native landing verifies exact-head hosted CI.

Refs openclaw#145183 openclaw#145415
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
…#145462)

* test: cover transcript cold storage in release Docker lanes

* test: remove stale cloud picker test seams

Clear baseline CI failures introduced by openclaw#145183: reuse the existing picker fixture, test cloud configuration through its production renderer, and remove the unused Connect menu renderer.

* test: preserve historical transcript fixture modification times

Doctor imports filesystem mutation time rather than timestamps inside messages. Date the legacy files before import, and handle CLI failure diagnostics without adding a lint suppression or retaining credential-bearing command arguments.

* fix: keep cold sessions available to Activity title probes

Handle cold transcripts at the optional title-reader boundary without restoring payloads or caching missing previews. Verify real archival, mixed hot/cold listings and cache recovery; extend packaged release proof across restart and portable backup recovery. Preserve JSON CLI errors from stdout in the test harness.

* fix(ui): use the action cursor for session details

Clear the existing cursor-policy failure from openclaw#145183 without weakening its regression test.

* test: preserve frozen release targets in cold-storage lanes

Share capability resolution with source preflight and omit only unsupported cold subcases under the existing explicit frozen-target policy. Keep current coverage required, isolate ordinary retention in the live fixture, and strengthen fixture typing without suppressions.

* test: complete cold-storage release entrypoint contracts

Register the shell entrypoints for dependency analysis, type the frozen-source fixture cases explicitly, and align existing cloud test callback ordering with the same repair now on main.

* test: isolate archived recall from external tool policy

* test: retain the cloud machine locator for proof capture
obviyus added a commit that referenced this pull request Oct 10, 2026
## What Problem This Solves

Newly joined machines default to a foreground, command-only node, while New Session gives already-paired devices an invalid reconnect command and misleadingly says no session hosts are paired.

## User Impact

The CLI and Control UI now offer `npx -y openclaw connect <join-url> --service --session-host` by default. It installs a background node service that can run agent sessions, with a command-only service alternative. The UI shows the full command instead of clipping its consent flags.

Session hosting remains an explicit device-local choice in the pasted command; the node runtime's default is unchanged. Use hosting only on trusted shared Gateway infrastructure.

Already-paired devices get the supported `openclaw config set nodeHost.workerRuns.enabled true`, then `openclaw node install --force` instructions. The empty-host hint distinguishes pairing from enabling hosting.

## Why This Change Was Made

Preserves the one-paste, single-use onboarding contract from [#122499](#122499) and [#122635](#122635). Corrects the remediation introduced in [#145183](#145183) using the saved-pairing service path documented by [#159810](#159810).

The join handler is its own lazy CLI module rather than adding more responsibilities to the device-management runtime. `-y` only skips [npm's package-install confirmation](https://docs.npmjs.com/cli/v11/commands/npx/); it does not replace OpenClaw consent. No package version is pinned.

No overlap with Pash/Sarah changes.

## Evidence

- Regressions fail on baseline `7e23f938f80590889e459de098f75cbfbdbfc686` for CLI text/JSON and paired-host/empty-host rendering.
- Real CLI before/after proof used separate isolated Gateways and state directories: the baseline printed `npx openclaw connect <url>`; the candidate printed the service/session-host command and command-only alternative. Both JSON invocations exited 0.
- CLI and lazy-loading tests: 52 passed. The Gateway setup and three UI rendering/picker suites pass after the scope reduction, as does the host-only browser regression. The five connection-dialog browser flows also pass.
- Independent exact-head review: **LAND**, no findings.
- [Exact-head CI](https://github.com/openclaw/openclaw/actions/runs/38083704554): **success**, 46 successful jobs, none failed or cancelled.
- [ClawSweeper](#168623 (comment)): **ready** on `d456a0ebad0fb6bd101821f0f8839896a7fde7f0`, no findings.
- Local `check:changed` passed its ratchets and core/test/UI typechecks, then stopped at the global unused-export scan. The same model-auth and Solid lint exports fail on clean `origin/main` (`e40606fdea96`); the additional pre-existing Solid test-helper export has already been removed upstream in [62629b0](62629b0d6ee). None of these files are changed here.

<details>
<summary>Observed CLI output from the isolated Gateway</summary>

The loopback port and single-use code below are normalized; both commands exited 0.

```text
$ openclaw devices join-code
http://127.0.0.1:<port>/j/<code>
npx -y openclaw connect http://127.0.0.1:<port>/j/<code> --service --session-host
Installs a background node service that can run agent sessions.
Command-only node: npx -y openclaw connect http://127.0.0.1:<port>/j/<code> --service

$ openclaw devices join-code --json
{
  "joinUrl": "http://127.0.0.1:<port>/j/<code>",
  "command": "npx -y openclaw connect http://127.0.0.1:<port>/j/<code> --service --session-host"
}
```

This was captured from the production-identical join handler at `ddebdaccc0a2f53d96ecb185daa54b4918233688`; the final revision removes the deferred picker change and updates its regression expectations without changing that handler.

</details>

### Join command

| Before | After |
| --- | --- |
| ![Before: foreground command-only enrollment](https://github.com/user-attachments/assets/0328ced1-06b0-4f2e-91ec-8bbb81935ee4) | ![After: service/session-host flags and command-only alternative](https://github.com/user-attachments/assets/bfa4f0b0-fb35-4938-9c60-37a178298ab0) |

### Already-paired device

| Before | After |
| --- | --- |
| ![Before: invalid targetless connect instruction](https://github.com/user-attachments/assets/ceab1193-553a-4b9a-a343-1ddd6898ddc1) | ![After: supported saved-pairing service instructions](https://github.com/user-attachments/assets/64eb71fb-4567-46f4-8092-bd311be56ce8) |

## Bounded cost

No additional RPCs, model calls, polling, retries, or background work. The existing join request and device inventory remain the owners. The command-only alternative uses the same single-use URL.

## Compatibility and Risk

No new config keys, protocol changes, worker-dialect changes, or runtime-selection changes. Reverting restores prior suggestions for future joins; devices already enrolled keep their explicitly enabled service and hosting consent until the operator changes them. The blast radius is device enrollment and New Session guidance, not session execution or authorization.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
## What Problem This Solves

Newly joined machines default to a foreground, command-only node, while New Session gives already-paired devices an invalid reconnect command and misleadingly says no session hosts are paired.

## User Impact

The CLI and Control UI now offer `npx -y openclaw connect <join-url> --service --session-host` by default. It installs a background node service that can run agent sessions, with a command-only service alternative. The UI shows the full command instead of clipping its consent flags.

Session hosting remains an explicit device-local choice in the pasted command; the node runtime's default is unchanged. Use hosting only on trusted shared Gateway infrastructure.

Already-paired devices get the supported `openclaw config set nodeHost.workerRuns.enabled true`, then `openclaw node install --force` instructions. The empty-host hint distinguishes pairing from enabling hosting.

## Why This Change Was Made

Preserves the one-paste, single-use onboarding contract from [openclaw#122499](openclaw#122499) and [openclaw#122635](openclaw#122635). Corrects the remediation introduced in [openclaw#145183](openclaw#145183) using the saved-pairing service path documented by [openclaw#159810](openclaw#159810).

The join handler is its own lazy CLI module rather than adding more responsibilities to the device-management runtime. `-y` only skips [npm's package-install confirmation](https://docs.npmjs.com/cli/v11/commands/npx/); it does not replace OpenClaw consent. No package version is pinned.

No overlap with Pash/Sarah changes.

## Evidence

- Regressions fail on baseline `f3cfd21833f00ba3c11fd0fe3d12ef42ff19d6d3` for CLI text/JSON and paired-host/empty-host rendering.
- Real CLI before/after proof used separate isolated Gateways and state directories: the baseline printed `npx openclaw connect <url>`; the candidate printed the service/session-host command and command-only alternative. Both JSON invocations exited 0.
- CLI and lazy-loading tests: 52 passed. The Gateway setup and three UI rendering/picker suites pass after the scope reduction, as does the host-only browser regression. The five connection-dialog browser flows also pass.
- Independent exact-head review: **LAND**, no findings.
- [Exact-head CI](https://github.com/openclaw/openclaw/actions/runs/38083704554): **success**, 46 successful jobs, none failed or cancelled.
- [ClawSweeper](openclaw#168623 (comment)): **ready** on `d456a0ebad0fb6bd101821f0f8839896a7fde7f0`, no findings.
- Local `check:changed` passed its ratchets and core/test/UI typechecks, then stopped at the global unused-export scan. The same model-auth and Solid lint exports fail on clean `origin/main` (`d1abe907cb7c`); the additional pre-existing Solid test-helper export has already been removed upstream in [7362b2e](openclaw@7362b2e69af). None of these files are changed here.

<details>
<summary>Observed CLI output from the isolated Gateway</summary>

The loopback port and single-use code below are normalized; both commands exited 0.

```text
$ openclaw devices join-code
http://127.0.0.1:<port>/j/<code>
npx -y openclaw connect http://127.0.0.1:<port>/j/<code> --service --session-host
Installs a background node service that can run agent sessions.
Command-only node: npx -y openclaw connect http://127.0.0.1:<port>/j/<code> --service

$ openclaw devices join-code --json
{
  "joinUrl": "http://127.0.0.1:<port>/j/<code>",
  "command": "npx -y openclaw connect http://127.0.0.1:<port>/j/<code> --service --session-host"
}
```

This was captured from the production-identical join handler at `ddebdaccc0a2f53d96ecb185daa54b4918233688`; the final revision removes the deferred picker change and updates its regression expectations without changing that handler.

</details>

### Join command

| Before | After |
| --- | --- |
| ![Before: foreground command-only enrollment](https://github.com/user-attachments/assets/0328ced1-06b0-4f2e-91ec-8bbb81935ee4) | ![After: service/session-host flags and command-only alternative](https://github.com/user-attachments/assets/bfa4f0b0-fb35-4938-9c60-37a178298ab0) |

### Already-paired device

| Before | After |
| --- | --- |
| ![Before: invalid targetless connect instruction](https://github.com/user-attachments/assets/ceab1193-553a-4b9a-a343-1ddd6898ddc1) | ![After: supported saved-pairing service instructions](https://github.com/user-attachments/assets/64eb71fb-4567-46f4-8092-bd311be56ce8) |

## Bounded cost

No additional RPCs, model calls, polling, retries, or background work. The existing join request and device inventory remain the owners. The command-only alternative uses the same single-use URL.

## Compatibility and Risk

No new config keys, protocol changes, worker-dialect changes, or runtime-selection changes. Reverting restores prior suggestions for future joins; devices already enrolled keep their explicitly enabled service and hosting consent until the operator changes them. The blast radius is device enrollment and New Session guidance, not session execution or authorization.

Co-authored-by: Ayaan Zaidi <[email protected]>
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant