Repository navigation
improve: make session environments searchable - #144453
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 7:41 PM ET / 23:41 UTC (Revision 4). ClawSweeper reviewWhat this changesMakes New Session destinations searchable, separates automatic device selection into a switch, and adds matching Mac icons while retaining capacity indicators and placement eligibility. Merge readiness✅ Ready for maintainer review The prior documentation and browser-test findings are resolved, with no remaining actionable findings identified. The improvement remains absent from current main and the latest release, so this protected PR remains useful. Priority: P2 Review scores
Verification
How this fits togetherThe New Session destination picker displays the Gateway’s device and cloud inventory. User selections feed the existing session-placement owner, which retains responsibility for eligibility and saved destination preferences. flowchart TD
A[Gateway environment inventory] --> B[Existing eligibility projection]
B --> C[Searchable destination picker]
D[Search text] --> C
C --> E[Manual selection or Auto switch]
E --> F[Existing session placement owner]
F --> G[Session destination]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +331, Tests +516, Docs +2, Other +26. Total +875 across 25 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep destination search and Auto presentation in the existing picker, with eligibility, scheduling, and saved preferences owned by the existing placement flow. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this adds an accepted picker interaction. Current-main source confirms the old grouped interface, and inspected captures demonstrate the proposed visual change. Is this the best way to solve the issue? Yes. Extending the existing picker and selection callbacks preserves one placement owner; the final documentation correction now accurately describes the implemented selection behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5c99bfa6eaad. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review Browser-test migration and final picker refinements are complete at 9534fae. The PR description includes refreshed, verified proof and passing local browser/real-Gateway checks. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Corrected the remaining selected-device documentation sentence at 0a65b87. It now describes the retained worker-slot indicator and busy-count tooltip beside the checkmark. Docs formatting and link checks pass. This commit changes only that sentence; the reviewed renderer and published proof are unchanged. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* improve: make session environments searchable * improve: stabilize environment selection and refresh browser coverage * test: avoid returning from picker lifecycle promise executor * docs: describe retained selected-device capacity
Closes #144443
What Problem This Solves
New Session calls one fixed Local row “Environments,” separates connected devices into another group, and presents Auto as if it were another machine. The picker makes it hard to understand where a session will run and gets crowded as devices are added.
Why This Change Was Made
Replace those groups with one search-first list ordered Local → Devices → Cloud, and make Auto a separate switch. Preserve placement, capacity, permissions, and cloud configuration behavior; this does not add an environment manager or change scheduling.
User Impact
Evidence
Real
/newUI with a synthetic mocked Gateway, baseline38e0e2e9d4c09b13c60ebecf7307db6c693d4b4dand candidate9534fae80b6802d36f748296cd8e11b74f34f717(renderer unchanged at final docs-only head0a65b87b5f7fde486c3a62ce14d8dab9bd7b4bf6). Captures are labeled before/after. Browser assertions verify the 8px search gap, fixed 20px checkmark column, framed shuffle icon, and exactly unchanged row/label/meter/check positions and widths after selection.Watch the updated 35-second Mac demo: Mac mini, Mac Studio, and MacBook Pro; selecting Studio retains its slots beside the checkmark, then the native-symbol CSS preview and Auto mode are demonstrated. Devices are synthetic; the native segment uses real AppKit output in a labeled CSS harness.
Typical inventory, Auto mode, and selection
Browser outlines versus native SF Symbols
These are explicitly labeled native-symbol CSS harness captures using real AppKit-generated masks—not screenshots of a launched production app.
Selected native Mac and trigger.
Full comparison matrices: desktop 1440×900, mobile 390×844, laptop 1366×768. Inspected 45 browser candidate states plus six native-symbol CSS harness states (102 full-viewport/crop captures). Coverage includes loading, empty, failure, dense/scrolling, offline/unavailable/full-capacity devices, cloud controls, search, Auto, and selection. Search has no baseline equivalent and is labeled accordingly.
Validation
OpenClawproduct build, targeted Swift format/lint, native localization verification, and isolated AppKit symbol rendering passed for the unchanged native implementation.openclaw/ci-gate. The unchanged macOS suite had one WebKit callback/deadline timing failure, then passed on one failed-job rerun; no test or product code was changed for the retry. CI result.pnpm format:docs:check(1,281 files),pnpm docs:check-links(13,407 links; zero broken), andgit diff --checkpass.node scripts/check-changed.mjspasses for the final changed files: core/UI/extension typechecks, formatting, i18n, dependency/boundary guards, source lint, styles, and full bundled-extension lint.