Repository navigation
improve(ui): open long pickers as a bottom sheet on phones - #191399
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 presents long pickers and agent selectors as bottom sheets on phones while retaining anchored desktop menus. Example: Open Language in Appearance at 390px width.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 5 items remain Keep open: this maintainer-authored improvement has clear visual value, but dismissal defects and validation failures need repair. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI picker components receive choices and selection callbacks; the shared picker and overlay owners handle rendering, navigation, selection, and dismissal. flowchart TD
A[Settings and agent selectors] --> B[Shared picker]
B --> C[Phone layout adapter]
B --> D[Menu navigation and windowing]
C --> E[Native overlay surface]
D --> E
E --> F[Selection callback]
Technical reviewBest possible solution: Keep one picker and overlay owner, provide an input-blocking sheet backdrop, preserve native Close activation, and repair the affected fixture, lifecycle guard, and asset budgets. Do we have a high-confidence way to reproduce the issue? Prepared screenshots establish the before/after presentation, and source traces establish the review defects; no target code was executed. Is this the best way to solve the issue? Reusing the picker surface preserves selection and windowing ownership, but its sheet adaptation must also preserve backdrop isolation and native header-control activation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cd56ab1a54c8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +228, Tests +25. Total +253 across 10 files. Added test files: 0. View PR surface stats
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 2, 2026, 2:21 PM ET / 19:21 UTC. |
…191399) improve(ui): open long pickers as a bottom sheet on phones
What Problem This Solves
On a phone, long pickers opened as a small anchored popup over the page. Language showed 11 of its 24 choices in a popup that started halfway down the screen, with page text showing around it.
Why This Change Was Made
The picker's own surface becomes a bottom sheet at phone width, so options, search, keyboard navigation and windowing stay the same code. It has the same corners, backdrop, safe areas and motion as the existing phone sheets, plus a grabber to swipe down, a close button and a title.
User Impact
Long lists on a phone use the screen and are easy to reach and dismiss. No choice or capability changes.
Evidence
Real clicks in the mock Control UI at 390.
Absolutely dark, Agent:
CRT light, Language:
Desktop stays anchored at 1440:
Checks on the branch: oxfmt, stylelint, oxlint,
tsgo:ui, picker and agent select browser tests (76), and eight agent, session and settings e2e files (35) pass. The agent list test's row limit moves from 30 to 60 because the taller sheet shows more of the 300 rows; it renders 35.ui:check-performance:basefails on budget only: total CSS gzip is 319961 B against 319616 B (+409 B from base), and chat boot JS gzip is 1280584 B against 1280000 B (+1025 B from base). The swipe code loads on first use to keep that low. Also checked by real clicks: close button, backdrop tap, Escape, swipe down and reopen, and search with a longer agent list.Real Safari, opened by OS clicks in a phone-width window. Bottom anchoring, backdrop, backdrop tap, close and reopen work; swipe wasn't run there: