Repository navigation
improve(ui): simplify environment picker and cloud configuration - #145183
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 7:03 PM ET / 23:03 UTC (Revision 3). ClawSweeper reviewWhat this changesSimplifies 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +611, Tests +440, Docs +4. Total +1055 across 24 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
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.
Clear the existing cursor-policy failure from #145183 without weakening its regression test.
… 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
* 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
…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
… 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
…#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
## 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 | | --- | --- | |  |  | ### Already-paired device | Before | After | | --- | --- | |  |  | ## 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]>
## 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 | | --- | --- | |  |  | ### Already-paired device | Before | After | | --- | --- | |  |  | ## 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]>
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
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
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.
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.
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.