Skip to content

fix: keep mobile session selectors on one row - #173186

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/mobile-selectors-row-20261015
Oct 15, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/mobile-selectors-row-20261015

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: New Session stacks its agent, host, project, and branch controls into several rows on phones, taking space away from the prompt.

User Impact

User impact: Phone setup controls stay on one compact row with 44px tap targets, readable short values, and ellipsis for long values. The agent uses its avatar; full selected values remain available to assistive technology and in the pickers. Desktop layout is unchanged.

Why This Change Was Made

The phone-only layout now shares the available width instead of giving every selector its own row. Existing menus and selection owners are retained. The Safari upload-picker anchor repair is intentionally separate.

Evidence

  • Full responsive New Session E2E: 5 passed (57.79s wall, including the production UI build). Covers 320/390/430/560px phones, desktop, one/two-agent setups, long branch values, pointer and keyboard selection, and light/dark captures.
  • Placement browser test: 6 passed (15.03s cold wall), including long/short labels, cloud configuration accessible names, RTL, and real folder selection.
  • UI typecheck, targeted formatting, and stylesheet lint passed. Hosted CI passed on the exact reviewed head. UI browser jobs took 506–670s each and selected UI E2E jobs took 277–377s each; these are whole-shard elapsed times, not the incremental cost of the new cases.
  • Independent P0–P2 review completed. Its badge-overflow suggestion does not apply to this caller: New Session maps agent options without badges; the shared badge-capable component is unchanged.

Before

Before: stacked phone session selectors

After

After: compact phone session selector row

Command-palette regression recovery

The compact selector styling also affected the command palette’s reused agent picker. The scoped repair and inspected before/after evidence are tracked in this follow-up.

Contributor credit

Reported and requested by @vincentkoc.

Work sessions

@clawsweeper

clawsweeper Bot commented Oct 15, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 15, 2026 14:09
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 15, 2026 14:13
@roboclaw-bot
roboclaw-bot merged commit b9b1c5d into main Oct 15, 2026
131 checks passed
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 15, 2026
@roboclaw-bot
roboclaw-bot deleted the fix/mobile-selectors-row-20261015 branch October 15, 2026 14:24
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR puts phone New Session selectors on one compact row with avatar-only agent selection and truncated labels.

Example: Open New Session at a 390px phone viewport.

  • Before: Agent and placement selectors occupy separate rows above the prompt.
  • After: Agent, Local, openclaw, and New worktree selectors share one row.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct visual proof supports the approved layout change; the remaining finding is a narrow documentation correction.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected downloaded before/after screenshots show the New Session browser surface changing from stacked phone selectors to one compact row; source inspection maps that result to the changed responsive stylesheet.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Stacked phone selectors consume vertical space above the prompt.
Reason: The maintainer-authored PR establishes the direction, and inspected screenshots demonstrate the compact result while retaining existing selection owners.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-directed mobile layout improvement is visibly demonstrated, with one documentation correction remaining.

Priority: P3
Reviewed head: 5a741689a48f9443468c2abb84df11ce5b4c5715

Before merge

Findings

  • [P3] Update the placement guide for the new phone layout — ui/src/styles/new-session.css:1410-1411
Agent review details

How this fits together

The Control UI renders agent and placement selections above the New Session composer; responsive CSS controls their presentation while existing pickers retain selection ownership.

flowchart TD
  A[New Session state] --> B[Agent selector]
  A --> C[Placement pickers]
  B --> D[Responsive selector row]
  C --> D
  D --> E[Phone composer]
Loading

Technical review

Best possible solution:

Keep the compact phone layout and update the placement guide to describe truncation and where to inspect OS/machine selections.

Do we have a high-confidence way to reproduce the issue?

Current-main CSS establishes the stacked phone layout, and the inspected before screenshot shows it; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The existing responsive stylesheet is the appropriate owner, and the change preserves picker behavior and accessible names while implementing the approved compact presentation.

Full review comments:

  • [P3] Update the placement guide for the new phone layout — ui/src/styles/new-session.css:1410-1411
    At phone widths this rule hides the OS/machine summary, while the surrounding changes replace stacked, fading controls with a compact ellipsis row. The placement guide still promises the previous behavior at lines 102 and 114, so phone users following it are told their selected configuration remains visible when it does not. Update https://docs.openclaw.ai/gateway/cloud-workers/placement-and-machine-selection to describe the compact row, desktop-only closed summary, and inspecting full selections in the picker; root AGENTS.md requires docs to follow behavior changes.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Stacked phone placement layout and fading labels changes intended behavior with a stated reason (f0f31b4: Give long selected names more phone width while preserving accessible names and desktop layout.)
  • Visible OS/machine summary changes intended behavior with a stated reason (ddd5d7c: Expose the selected operating system and machine size without reopening the picker.)
  • Mobile control spacing and sizing changes intended behavior with a stated reason (50c7400: Refine mobile composer hierarchy, spacing, and touch interaction.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • git diff --check
  • pnpm docs:check-mdx
  • pnpm docs:check-links

What I checked:

Likely related people:

  • RoboClaw: Raw commit ee43f53 adds ui/src/styles/new-session.css:1331 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ee43f53b56dc; files: ui/src/styles/new-session.css)
  • Peter Steinberger: Raw commit fecd1ca adds ui/src/styles/new-session.css:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fecd1ca19552; files: ui/src/styles/new-session.css)
  • Vyctor H. Brzezowski: Raw commit 50c7400 adds ui/src/styles/new-session.css:1245 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 50c7400a9acb; files: ui/src/styles/new-session.css)
  • Vincent Koc: Raw commit 64d15a8 adds ui/src/styles/new-session.css:1502 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 64d15a871282; files: ui/src/styles/new-session.css)

PR surface

Source -17, Tests -35. Total -52 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 41 58 -17
Tests 2 66 101 -35
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 107 159 -52

Labels

Label changes:

  • add P3: This is phone layout polish with a narrow documentation discrepancy and no identified runtime blocker.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is phone layout polish with a narrow documentation discrepancy and no identified runtime blocker.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 October 15, 2026, 10:24 AM ET / 14:24 UTC.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

@roboclaw-bot

roboclaw-bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator Author

Follow-up regression repair: command-palette agent label

The mobile selector rule in this PR also matched the AgentSelect reused by command-palette New Session settings. On current main c8260d9, the existing built-user-flow regression fails at 390px with Missing settings control: .agent-select__label. This is a product CSS-scoping defect, not a stale test expectation.

The repair scopes all mobile agent-specific overrides to .new-session-page__triggers, leaving the palette’s label and alignment under its existing owner. The real palette tests pass in light/mobile, dark/mobile, and dark/desktop; an additional dark/mobile matrix case protects the sibling theme. No assertion is weakened. Direct-main recovery follows the repository’s red-main policy. Repair commit: 93f2e4248e6e924c56cbc8d5850b3265f21da183.

Before

Before: command-palette agent label hidden

After

After: command-palette agent label restored

Validation: both full affected E2E files pass 19/19 (62.16s total including production build): command-palette creation/settings 14/14, New Session responsive flow 5/5. The added dark/mobile case took 2.439s and shares the existing suite fixture. The baseline light/390 user flow fails on the hidden label before the CSS repair. Scoped lint reports 0 warnings/errors; stylesheet lint, UI typecheck, formatting, and diff checks pass. Independent P0–P2 autoreview: scoped-clean. Main advanced only in disjoint native locale/delivery files before publication; the tested two-file patch was preserved byte-for-byte. CI reruns were not used as a substitute for repair; hosted seconds for this direct-main recovery are not yet available.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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