Repository navigation
fix(ui): open the mobile Where picker above when space below is short - #194374
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc - @vyctorbrzezowski Co-authored-by: vincentkoc <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 7b34badd-06f0-4662-84f2-60b4265cb8c3
|
🦞👀 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 lets new-session pickers flip above their triggers when the space below would hide choices. Example: Open Where on the new-session page at 393×852.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it addresses a visible mobile picker defect with a small CSS change, but its added regression causes the test-line budget check to fail. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe new-session page renders destination controls through SessionPicker and the shared native Popover; CSS anchor positioning uses the trigger location and available viewport space to place the choices. flowchart TD
A[New session page] --> B[Where trigger]
B --> C[SessionPicker]
C --> D[Shared Popover]
E[Picker height budget] --> D
D --> F[Browser anchor positioning]
F --> G[Visible destination choices]
Technical reviewBest possible solution: Retain the existing CSS placement fix and focused regression, with a justified test-line allocation and the required browser validation. Do we have a high-confidence way to reproduce the issue? The unchanged main height constraint explains the cramped placement, and inspected before media shows the reported failure; this read-only review ran no target code. Is this the best way to solve the issue? The change repairs the size budget at the existing picker styling boundary and reuses native flip behavior, making it the smallest complete production fix supported by the evidence. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d1be6e243ccd. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +7, Tests +29. Total +36 across 2 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. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 6, 2026, 7:36 PM ET / November 7, 2026, 00:36 UTC. |
Keeps the regression within the test-lines budget. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc - @vyctorbrzezowski Co-authored-by: vincentkoc <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 5905b8e0-b75c-4561-87e5-f518e67e36c0
Co-authored-by: vincentkoc <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vincentkoc - @vyctorbrzezowski Co-authored-by: vincentkoc <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: e7a97013-9481-4e24-87d9-32c86af5bab4
Related: mobile Control UI picker report from @vincentkoc; follows #194126 and #194139.
Problem
On a phone, the new-session Where picker (This computer) always opened below its trigger, into the small space above the composer. Its list shrank to 77px at 393×852 and 48px at 393×500 against 129px of content, so the Hosted workspaces / Agents API setup section was hidden behind an inner scroll. It never flipped above, because its max height was a fraction of the space below, so that side always "fit".
Solution
Add one
max-heightdeclaration inside the existing.oc-popover.new-session-page__selectrule (ui/src/styles/new-session.css), mirroring the composer pickers' existing@position-try --chat-picker-fitbudget: a side with less than 200px is rejected, so the popover flips above its trigger and shows its whole list.No new stylesheet, rule block or selector, and no design change: the desktop layout and the "What" picker are unchanged.
Evidence
ui/src/e2e/mobile-new-conversation.e2e.test.ts(390×844, touch): opening Where must not leave its list scrolling (base: 48px inner scroll).expected 48 to be 0); the other 8 pass. Green with the fix: 9/9. Test-lines ratchet within budget.git diff --checkare clean.Screenshots are Chromium with synthetic data. The audit measured the same clipping in WebKit (Safari 27.2) and the same fix behavior via injected CSS.
Gaps
Human credit: vincentkoc and vyctorbrzezowski.
Worked on by