Skip to content

fix(ui): open the mobile Where picker above when space below is short - #194374

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/nimble-claw-5
Nov 7, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/nimble-claw-5

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

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-height declaration inside the existing .oc-popover.new-session-page__select rule (ui/src/styles/new-session.css), mirroring the composer pickers' existing @position-try --chat-picker-fit budget: 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

  • Regression folded into the existing mobile docking test in ui/src/e2e/mobile-new-conversation.e2e.test.ts (390×844, touch): opening Where must not leave its list scrolling (base: 48px inner scroll).
  • Red on base: only the docking test fails (expected 48 to be 0); the other 8 pass. Green with the fix: 9/9. Test-lines ratchet within budget.
  • oxfmt, stylelint, oxlint and git diff --check are clean.
393×852 before 393×852 after 393×500 after
Where picker before 393x852 Where picker after 393x852 Where picker after 393x500

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

  • Not verified on a real iPhone.
  • No isolated WebKit run on the final source; WebKit evidence is from the audit's injected-CSS check.

Human credit: vincentkoc and vyctorbrzezowski.

Worked on by

roboclaw-bot and others added 2 commits November 7, 2026 00:18
Worked on by:
- @vincentkoc
- @vyctorbrzezowski

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 7b34badd-06f0-4662-84f2-60b4265cb8c3
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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.

  • Before: The picker opens below the trigger and hides Hosted workspaces and Agents API setup behind an inner scroll.
  • After: The picker opens above the trigger with both sections visible.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, minimal visual repair with convincing Chromium media, one mechanical CI blocker, and incomplete required WebKit validation.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Phone users cannot see hosted-workspace choices immediately because Where opens into the cramped space below its trigger.
Reason: The visible usability defect has a narrow repair, and the collaborator-authored PR supplies the direction decision.

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
Reviewed head: f94071309fd7776132bffcb6b71670362a68848f

Before merge

  • Allocate the added regression lines to clear the CI budget (P2) - This regression adds 29 test lines without an allocation or offset, and the exact-head baseline-ratchets job reports test-lines failed. The repository's cost-budget contract requires a separate justified allocation for net regression growth. Preserve this useful browser regression and add its 29-line allocation under config/test-lines-allocations/, leaving the shared scalar unchanged; then verify the ratchet passes.

Findings

  • [P2] Allocate the added regression lines to clear the CI budget — ui/src/e2e/mobile-new-conversation.e2e.test.ts:349-350

Tests

  • Missing end-to-end proof: Provide final-source WebKit evidence that Where opens with all choices visible at the supplied phone sizes and selection still works; the body currently reports injected-CSS verification only.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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:

  • [P2] Allocate the added regression lines to clear the CI budget — ui/src/e2e/mobile-new-conversation.e2e.test.ts:349-350
    This regression adds 29 test lines without an allocation or offset, and the exact-head baseline-ratchets job reports test-lines failed. The repository's cost-budget contract requires a separate justified allocation for net regression growth. Preserve this useful browser regression and add its 29-line allocation under config/test-lines-allocations/, leaving the shared scalar unchanged; then verify the ratchet passes.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d1be6e243ccd.

Provenance checked

  • New-session picker placement and scrolling keeps the original intent (e961e9e: The native Popover migration preserved shared lifecycle behavior and made constrained mobile lists scroll instead of clipping.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:test-lines-ratchet --base d4d6fe7
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e961e9e adds ui/src/styles/new-session.css:636 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e961e9e71904; files: ui/src/styles/new-session.css)
  • Vyctor H. Brzezowski: Raw commit 07fae10 adds ui/src/styles/new-session.css:682 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 07fae10c385a; files: ui/src/styles/new-session.css)

PR surface

Source +7, Tests +29. Total +36 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 7 0 +7
Tests 1 29 0 +29
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 36 0 +36

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Hidden destination choices create mobile usability friction, but the existing inner scroll provides an in-product recovery path.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Hidden destination choices create mobile usability friction, but the existing inner scroll provides an in-product recovery path.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Supply final-source WebKit evidence for the mobile Where picker.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 6, 2026, 7:36 PM ET / November 7, 2026, 00:36 UTC.

roboclaw-bot and others added 4 commits November 7, 2026 00:38
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
@roboclaw-bot
roboclaw-bot merged commit 0044f25 into main Nov 7, 2026
72 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/nimble-claw-5 branch November 7, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant