Repository navigation
improve(ui): show the search field at the top of pickers and menus - #197540
Conversation
Cards that can be searched showed a title with a search icon on the right, so searching took an extra click and the field replaced the title once open. The field is now always visible at the top with a leading search icon and a clear button once there is a query. The repeated card titles are gone; the trigger or parent row already names the card. The Projects and Where pickers, the palette's project list, searchable select pickers and Jump to file open with the field focused when a hardware keyboard is likely. Touch-only devices and phone sheets leave the keyboard down until the field is tapped. Assign to keeps row focus and still searches on typing. Escape clears a query first and closes on the next press. Reworks #189573. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 37924412-21cd-4fdf-97e7-1a050716866e
|
🦞👀 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. |
ScreenshotsMocked Control UI, light theme unless noted. "Before" is Assign to…
Projects picker, new session page
Where picker, new session page
Sessions filters
Agent picker (searchable select picker)
Agent picker as a phone sheet, 390 px
Project list in the command palette's new session settings
After only
|
|
Codex review: needs changes before merge. What this changesThis PR makes search fields permanently visible at the top of searchable pickers and menus. Example: Open Assign to… to find Atlas.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open for the maintainer-approved UI change; phone-sheet accessibility and a diff-caused CSS budget failure need correction before merge. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI picker and menu hosts supply queries and catalogs to the shared search header, while existing owners retain filtering, selection, and mutations. flowchart TD
User[User input] --> Overlay[Existing overlay owner]
Overlay --> Header[Shared search header]
Header --> Query[Existing query owners]
Query --> Choices[Filtered choices]
Choices --> Selection[Existing selection actions]
Technical reviewBest possible solution: Keep the shared visible search row, preserve active-descendant reporting on the focused phone list, and reduce the touched CSS enough to satisfy the existing budget. Do we have a high-confidence way to reproduce the issue? The supplied screenshots establish the presentation change, source establishes the focused-list accessibility mismatch, and current-head CI records the CSS failure; no target code was executed during this review. Is this the best way to solve the issue? Reusing HeaderSearch and removing collapsed-search state is appropriate, but field visibility must no longer determine whether the focused list exposes its highlighted option. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 00ac159ff5d6. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -36, Tests -78, Other +8. Total -106 across 58 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 12:22 AM ET / 05:22 UTC. |
vyctorbrzezowski
left a comment
There was a problem hiding this comment.
Reviewed the search/focus changes and active-option correction. Verified 60 Chromium and 60 WebKit cases, UI types, and the production-bundle project-selection flow. Approved with the maintainer-authorized CSS budget exception documented in the PR body.
|
Merged as f9fec33. Verified the picker correction with 60 Chromium and 60 WebKit tests, UI typechecking, and the production-bundle project-selection flow. The documented CSS budget exception was approved by the maintainer; the design is preserved. |
…penclaw#197540) Keep search visible at the top of searchable pickers and menus, preserving touch-first focus and keyboard behavior. Keep the active option exposed when the list retains focus. Co-authored-by: vyctorbrzezowski <[email protected]>

















Related: #189573
What Problem This Solves
Searchable pickers and menus opened with a title and a search icon on the right, so finding someone or something in a long list (people, projects, agents, devices) took an extra click before typing, and the title repeated what the trigger already said.
User Impact
User impact: the search field is always visible at the top of a searchable card, and the crowded pickers open ready to type.
Not changed: the session sharing popover keeps its own Permissions heading with a search toggle, and the composer's skills menu keeps its header toggle. Both are section headers inside a larger menu rather than a card's only header.
Why This Change Was Made
#189573 moved each card's search behind a header title and a search icon. This keeps that PR's shared header component as the one owner for card search and changes what it renders: a leading search icon, the field, and a clear button. The collapsed state went away, and with it the per-host "searching" signals, the toggle's keyboard routing in the shared menu, and the special cases for a title that swaps with a field.
Hosts line the icon and text up with their own rows through two CSS custom properties on the shared row, so the icon sits on the rows' icon or avatar column and the text on their label column.
Accepted edge: a touch-only device that later gets a hardware keyboard starts focusing the field after the first hardware key press, the same rule the shortcut hints already use.
Evidence
The production-bundle project-selection E2E also passed; the current project-search screenshot was inspected. Capture instrumentation was temporary and restored without changing the committed test.
Maintainer-authorized budget exception: built CSS grows by 334 bytes against a 64-byte tolerance, exceeding the effective limit by 270 bytes. This is PR-attributable growth, not an inherited failure. All other CI jobs passed; the aggregate failure comes from this budget check.
Maintainer review found that a searchable list could keep keyboard focus while losing its active-option accessibility relationship. The list now keeps that relationship when search is visible, without changing the layout or adding state or lookups.
The existing browser helper now checks the actually focused element. It failed on the incoming code; after the correction, all 60 relevant Chromium tests and the same 60 WebKit tests passed. UI typecheck, formatting, whitespace, and pre-commit checks also passed.
Independent review of the complete corrected diff found no actionable P0–P2 issues. It did not execute tests or inspect unchanged files; the maintainer separately reviewed the focus and menu owners.
Screenshots are from the mocked Control UI (
pnpm dev:ui:mock) at 1280×860 and 390×844, 2× scale, with fixture people and agents added to the mock only for the capture (not committed). "Before" ismainat 55cac59.Assign to…
Projects picker, new session page
The other surfaces (Where picker, Sessions filters, agent picker on desktop and as a phone sheet, the palette's project list, a typed query, dark theme) are in the screenshot gallery comment.
Original author validation before the accessibility correction:
pnpm tsgo:ui,pnpm lint:ui:styles,pnpm ui:i18n:verify,pnpm check:control-ui-controllers, oxlint and format on the changed files: pass.ui/src/pages/new-session: 73 files, 819 tests pass.gpt-6.1-sol, priority P1) onb06aeb5b8c..dd3a0bc257(published as758c21078dwith the same tree): scoped-clean, no actionable findings. It reviewed the patch only and did not run tests.Remaining gaps: the full application E2E scenarios were not rerun on WebKit; the 60 component/browser cases above cover the corrected picker behavior. The real-Gateway model picker E2E and two interaction benchmark scenario scripts were updated by the author but were not run locally. CI has completed with only the documented CSS budget failure and its dependent aggregate.
Requested by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by