Repository navigation
improve(ui): move card search into the header - #189573
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 changes before merge. What this changesThis PR replaces permanently visible search inputs in floating cards with expandable header searches. Example: Open the sidebar Owners picker and search for Bob.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Needs changes before merge - 2 items remain Keep open for the maintainer-approved UI improvement: the earlier findings are fixed, but current-head CI exposes a keyboard regression that blocks merge. Priority: P2 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherControl UI cards receive keyboard and pointer input, filter existing catalogs, and delegate selection and mutations to their existing owners. flowchart TD
User[User input] --> Overlay[Overlay registry]
Overlay --> Header[Shared header search]
Header --> Query[Existing query owners]
Query --> Lists[Filtered choices]
Lists --> Selection[Existing selection actions]
Technical reviewBest possible solution: Make the existing menu keyboard-admission owner recognize collapsed header search before chat autotype claims printable keys. Do we have a high-confidence way to reproduce the issue? Reviewed-head CI reproduces both hovered assignment failures, and source inspection explains why the collapsed search loses keyboard ownership. Is this the best way to solve the issue? The shared visual control is appropriate, but keyboard admission must be integrated with the existing menu and chat owners. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bb8c5a07f194. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +169, Tests +115. Total +284 across 54 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label 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 HistoryReview history (1 earlier review cycle)
Reviewed October 31, 2026, 3:52 PM ET / 19:52 UTC (Revision 2). |
|
The control-ref factories now run inside their rendering owners. Header search uses the existing active-overlay registry and owned listeners, with no document-wide DOM discovery or separate header-controller registry. Diff-tree input sizing is restored. The additional empty-search close/reopen defect is covered by a failing-before/passing-after sequence in the existing Sessions E2E. Affected typechecks, guards, Chromium flows and E2Es pass; the three local WebKit Tab-exit failures reproduce on the unmodified merge base and are documented in the PR. The main CSS conflict is resolved without changing approved visual values. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
The hovered-assignment keyboard contract from #182016 is preserved in 069c879. The existing menu search registry now advertises the owned collapsed search toggle before chat autotype runs. Actual input insertion and arrow navigation remain input-only, and the standalone Skills toggle is unchanged. Both existing sidebar/header typing cases reproduced the composer interception before this correction. All 14 assignment E2Es and 165 menu, chat keyboard, and Skills sibling checks pass afterward, including Chromium and WebKit. The correction also passed independent review. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
* improve(ui): move card search into the header * fix(ui): bind header search to owned overlay lifecycles * fix(ui): advertise collapsed search to menu keyboard routing
What Problem This Solves
Floating cards with a search field show that input permanently, even though most people open them to pick from a short list.
User Impact
These cards now open with a compact header: back when the card has one, a title, and a search icon. The icon turns the header into the typing field, matching the composer Skills menu. Typing into an open card still starts a search.
Why This Change Was Made
One shared control now backs every converted card, and Skills uses it too, so they all behave the same:
No new copy was added. Header titles and labels reuse existing strings. All converted headers use the same hairline as Skills, so they read as one pattern. The composer bottom bar layout is untouched.
Two behaviour changes to review:
Evidence
States were captured in the real app against the
session-designmock fixture, driven with real clicks and keystrokes at 1440 and 390 px. Before images come from the same base commit with this change reversed.Sessions filters
Sidebar owner picker (shared
SelectPicker)Command palette, Projects
New session, Project picker
New session, Where picker
Composer Skills (reference, now on the shared control)
390 px
CRT and Beacon samples
Inventory
pages/new-session/palette-session-settings-view.tsxpages/new-session/project-picker-content.tsxpages/new-session/where-picker-content.tsxcomponents/session-menu-details-solid.tsxpages/chat/components/chat-session-sharing-menu.tsxpages/chat/components/session-diff-menus.tsxpages/sessions/sessions-filters.tsxSelectPickersearch (sidebar owners, model select, group select, mobile sheet)components/select-picker-view.tsxpages/chat/components/chat-composer-plus-menu-subview.tsxpages/chat/components/chat-model-picker-panelemoji-search-panelmodel-providerslogin viewmcp-app-resourcespersonal-session-group-dialogchat-session-sharing-content,chat-session-sharing-mobileValidation
Gaps