Repository navigation
fix(ui): polish command palette session settings - #153307
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 21, 2026, 7:21 PM ET / 23:21 UTC (Revision 8). ClawSweeper reviewWhat this changesPolishes command-palette settings alignment, typography, project grouping, and keyboard focus, while showing Remember settings only on the initial view. Merge readiness✅ Ready for maintainer review This remains a useful, focused improvement absent from current main. Inspected visual evidence supports the change, and no actionable correctness or security findings remain. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI command palette lets users choose an agent and workspace before starting a background session. Its settings panel presents existing draft choices and delegates preference saving to the existing preference owner. flowchart TD
A[Command palette] --> B[Session settings]
C[Agents and workspaces] --> B
B --> D[Initial settings view]
B --> E[Project selection view]
D --> F[Existing draft and preference owners]
E --> F
F --> G[Background session creation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +8, Tests +162. Total +170 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the refinement within the existing settings renderer and shared picker, preserving keyboard accessibility and the current preference owner. Do we have a high-confidence way to reproduce the issue? Yes: opening command-palette settings and entering Projects exposes the source-backed styling and focus behavior, with supplied Chromium comparisons showing the visual defects. Current main was inspected but not executed. Is this the best way to solve the issue? Yes: reusing the existing picker variant and settings renderer is a narrow repair that preserves other callers and preference persistence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 06ce6c415dd2. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
23dc687 to
9234f80
Compare
|
@clawsweeper re-review Please complete the review for current head |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
9234f80 to
ea89252
Compare
ea89252 to
2c3a6c8
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The earlier Crabbox timeout is repaired: its shard and all 13 UI E2E jobs now pass on I inspected the existing fix in #155053: it requests the explicit bounded page-maintenance unit and preserves the physical-progress/drain assertions. Current main still has the older best-effort call. @steipete, could you land that owning fix when ready? I will refresh this PR after it lands rather than duplicate or cherry-pick the repair. A bounded local replay passed, but that is not being treated as a fix or justification for rerunning unchanged CI. |
Keep remember settings on the initial view, align the agent picker with workspace controls, and preserve keyboard focus without forcing the search ring on pointer entry. Co-authored-by: vyctorbrzezowski <[email protected]>
Keep machine headings close to their options, separate groups, and inherit the 13px menu typography through the agent selector. Extend the browser regression and fix its missing-braces lint error. Co-authored-by: vyctorbrzezowski <[email protected]>
Keep all browser layout and keyboard coverage while leaving headroom below the line-cap ratchet when the PR is combined with main. Co-authored-by: vyctorbrzezowski <[email protected]>
Adapt the new layout cases to the helper contract introduced on main by #153238. The UI E2E type graph passes; no production behavior changes. Co-authored-by: vyctorbrzezowski <[email protected]>
2c3a6c8 to
d8288df
Compare
|
Merged via squash.
|
* fix(ui): polish command palette session settings Keep remember settings on the initial view, align the agent picker with workspace controls, and preserve keyboard focus without forcing the search ring on pointer entry. Co-authored-by: vyctorbrzezowski <[email protected]> * improve(ui): tighten palette grouping and typography Keep machine headings close to their options, separate groups, and inherit the 13px menu typography through the agent selector. Extend the browser regression and fix its missing-braces lint error. Co-authored-by: vyctorbrzezowski <[email protected]> * test(ui): extract palette settings layout assertions Keep all browser layout and keyboard coverage while leaving headroom below the line-cap ratchet when the PR is combined with main. Co-authored-by: vyctorbrzezowski <[email protected]> * test(ui): pass the shared palette fixture its server URL Adapt the new layout cases to the helper contract introduced on main by openclaw#153238. The UI E2E type graph passes; no production behavior changes. Co-authored-by: vyctorbrzezowski <[email protected]> --------- Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes uneven alignment and typography in the command palette’s new-session settings, project headings that look detached from their options, and an unwanted search focus ring on pointer entry. Remember settings also appeared inside Projects instead of only on the initial view.
User Impact
Agent names now match the other 13px row labels, with aligned chevrons and 20px avatars beside 18px icons. Project headings sit close to their options, with a clear 12px gap between groups. Remember settings stays on the initial view, and keyboard focus remains visible without forcing a search ring after a click.
Why This Change Was Made
Reuse the existing agent picker with full-width row geometry and inherited menu typography rather than composer sizing. Give group headings and group separation distinct spacing. Preserve keyboard navigation, preference-save errors and Retry, and all existing session-creation behavior; no configuration or persistence changes.
Evidence
Actual Chromium captures of the built Control UI with mock Gateway data. The comparison below shows the refinement requested after the first PR iteration:
Keyboard focus and original baseline
Original baseline before this PR:
git diff --checkpassed. Fixed the missing braces that caused the earlier PR’s lint failure.Landing repairs preserve all coverage and the approved UI:
openFromForegroundto a shared fixture requiring(page, baseUrl). The new layout case still supplied onlypage, causing TS2554 in the CI merge tree. Refreshed onto that contract and now passsuite.server.baseUrl, like its other callers.node scripts/run-tsgo.mjs -b test/tsconfig/tsconfig.core.test.ui-e2e.json --builders 1passes on the refreshed candidate; fresh full-candidate P0–P2 AutoReview is scoped-clean.runningjournal row before launch admission completed. Main now contains the owning repair 5beff9c33cc, which waits for the held launch response before invocation cancellation. No competing repair was published from this PR.0af08749bb4ae60a3104e4196578cb3b90eeadcf, including that fix.git range-diffconfirms all four commits are patch-identical to the reviewed candidate; production settings blobs and approved screenshots are unchanged. The UI E2E type graph passes again after frozen dependency reconciliation.b485dd0b988; all four PR commits remain patch-identical bygit range-diff, and all three production settings files remain byte-identical to the approved head. Main’s independent status-scoping and cold-command fixture fixes are preserved.2c3a6c8f07c948c668dbc7dd8e3a73afbcf87e76: all 16 Crabbox staging tests passed in 46.34s, including the originally failing claim-bound case in 5.314s. The UI E2E type graph, line-cap ratchet, andgit diff --checkalso passed.checks-node-compact-small-41, job106472998995) but hit a different existing test failure:session-accessor.sqlite-reclamation.test.ts:600expected positive page reclamation and observed zero (checks-node-compact-small-9, job106472998773). Post-delete vacuum is best effort and may defer to the commit-settlement writer. The production owner subsequently fixed self-contention in bef4401fbc5: page maintenance now joins the parent commit-settlement probe’s actual writer release. The proposed fixture-only repair fix: bounded reclamation test races optional cleanup #155053 was closed as superseded; no competing repair was copied into this PR. The precise historical CI schedule remains unobserved, but controlled owner regressions establish the repaired invariant.1497878e0bc677c6811c57442e6c775a16f43315asd8288df767f6c1838f91ec96f5029b74f81584ca. All four commits remain patch-identical; approved production files and screenshots are unchanged. Frozen installation, the UI E2E type graph, and diff checks pass. Exact-head CI 35664638923 and Workflow Sanity passed, including all 13 UI E2E jobs; real-Gateway E2E was not run. Completed-evidence native preparation passed. The reviewed head was squash-merged tomainas 23eb2a6f01a at 23:26 UTC on September 21. GitHub merged state, main ancestry, contributor credit, retained completion receipt, and native worktree cleanup were independently verified.Reproduction
Fresh landing proof: Blacksmith Testbox
tbx_01m310f9g1xa8gp3ahd634bnpf(run); earlier screenshots:tbx_01m2zqgap0xgb21gfsjdy47464, through the repository Crabbox wrapper with verified source materialization. Browser viewport widths: 1280 and 390; light and dark themes. Mock-Gateway proof, not a team-server deployment.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/command-palette-create.e2e.test.ts ui/src/e2e/agent-select-layout.e2e.test.tsnode scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json ui/src/e2e/command-palette-create.e2e.test.tsRequested by @vyctorbrzezowski. AI-assisted implementation.
Work sessions
OpenClaw work session