Skip to content

fix(next): prefer below placement for location pickers - #27146

Merged
teamleaderleo merged 1 commit into
feat-cmux-nextfrom
lane/nx-location-placement-1028
Oct 29, 2026
Merged

teamleaderleo merged 1 commit into
feat-cmux-nextfrom
lane/nx-location-placement-1028

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Location pickers now prefer opening below their trigger whenever the full menu fits, flipping above only when below has no room or less available space. The chosen side remains fixed while rows filter or refresh.

Adds a gallery regression for both sides fitting, while retaining the existing no-room-above side-stability coverage.

Changelog

Changed

  • Prefer below placement for composer and New Tab location menus.

Validation: git diff --check passed. Managed Chromium gallery execution completed for the exact head; local Chromium was not run.

Lawrence: “context menus should show below if possible”.

Managed Chromium capture (exact head)

Receipt: gallery advisory run 40795863363, artifact gallery-advisory-27146-efcb2d1533e146e1866f26c37a15295e7119390c. The artifact contains the exact light/dark before/after paths below (Chromium, narrow component width):

  • Light before: base/agent-pane.composer-context-side--filter-keeps-side--en--Apple_System_Colors_Light--w400-chromium.png; light after: head/agent-pane.composer-context-side--filter-keeps-side--en--Apple_System_Colors_Light--w400-chromium.png.
  • Dark before: base/agent-pane.composer-context-side--filter-keeps-side--en--Apple_System_Colors--w400-chromium.png; dark after: head/agent-pane.composer-context-side--filter-keeps-side--en--Apple_System_Colors--w400-chromium.png.
  • New below-when-room light: head/agent-pane.composer-context-side--below-when-room--en--Apple_System_Colors_Light--w400-chromium.png; dark: head/agent-pane.composer-context-side--below-when-room--en--Apple_System_Colors--w400-chromium.png.

Agent session: agent session


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Location pickers in the composer and New Tab now prefer opening below their trigger whenever the full menu fits, flipping above only when below has no room or less available space. The chosen side stays fixed while rows filter or refresh.

  • Adds a gallery regression case for when both sides fit, alongside the existing no-room-above side-stability coverage.
  • Updates the browser test to cover the below-when-room variant.

Written for commit efcb2d1. Summary will update on new commits.

View guided diff Turn on auto-fix

Use the shared below-when-room rule for composer and New Tab location menus, with coverage for both the no-room fallback and the case where both sides fit.

Agent-Session: https://cmux.com/deeplink/agent?id=aid-473709fdc57414b4a54b
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review efcb2d1: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr27146 -f ref=lane/nx-location-placement-1028 -f platform=macos -f backend_mode=local

Gallery before/after for efcb2d1: 16 states rendered, 4 images differ, 880 more touched states not rendered. Images are in the run's artifact, not on this public PR.

gh run download 40795863363 -R manaflow-ai/cmux -n gallery-advisory-27146-efcb2d1533e146e1866f26c37a15295e7119390c (then read gallery-review.json)

States
State Theme Status Diff Picked by
agent-pane.composer-context-side/below-when-room Apple System Colors Light new 0% own ComposerContextSide.gallery.tsx
agent-pane.composer-context-side/below-when-room Apple System Colors new 0% own ComposerContextSide.gallery.tsx
agent-pane.composer-context-side/filter-keeps-side Apple System Colors Light changed 37.8% own ComposerContextSide.gallery.tsx
agent-pane.composer-context-side/filter-keeps-side Apple System Colors changed 37.8% own ComposerContextSide.gallery.tsx
agent-pane.composer/font-size-chat-14 Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-chat-14 Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-chat-14 Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-chat-14 Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-tab-14 Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-tab-14 Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-chat-21 Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-chat-21 Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-chat-21 Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-chat-21 Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-tab-21 Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-tab-21 Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-chat-28 Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-chat-28 Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-chat-28 Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer/font-size-new-chat-28 Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/closed Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/closed Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-menu Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-menu Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-pinned-search Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-pinned-search Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-short-note Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-short-note Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-short-note-de Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-short-note-de Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-short-note-fr Apple System Colors Light unchanged 0% imports locationPopover.ts (1 hops)
agent-pane.composer-context/folder-short-note-fr Apple System Colors unchanged 0% imports locationPopover.ts (1 hops)

Pick other states with a Gallery: entry.id, entry.id/variant line in the PR body.

@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Oct 29, 2026
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Bead cx-v6h8pj created for this PR by the cmux coordinator.

@teamleaderleo
teamleaderleo merged commit 59fa54b into feat-cmux-next Oct 29, 2026
190 of 196 checks passed
@teamleaderleo
teamleaderleo deleted the lane/nx-location-placement-1028 branch October 29, 2026 03:00
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

This branch was previously deployed

1 inactive deployment
ci-routing-agent — efcb2d15 Deployed Oct 29, 2026 by teamleaderleo via cmux-tui tree preflight #74271
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant