Repository navigation
feat(ui): fold the mobile navigation row into the chat title bar - #109635
Conversation
On plain-browser mobile layouts the chat route drops the 58px shell topbar; the pane title bar gains a leading nav-drawer toggle and a trailing command-palette search button (~50px more chat). The shared mobile-nav breakpoint moves into one module used by shell and chat; native shells and non-chat routes keep today's chrome.
The chip now hugs the title text with the header's standard gap instead of sitting at the far right; the action cluster claims the leftover width and stays right-pinned. Where field-sizing is supported the rename input hugs its text too, so the chip tracks the title while typing.
|
Codex review: found issues before merge. Reviewed July 17, 2026, 12:30 AM ET / 04:30 UTC. Summary PR surface: Source +148, Tests +145, Docs 0. Total +293 across 13 files. Reproducibility: yes. from source: open a configured split chat at exactly 1100 CSS pixels in a plain browser; merged chrome is active while the 1099px narrow-layout query is not, allowing duplicate shell-wide controls across visible panes. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review findings
Review detailsBest possible solution: Use one canonical responsive boundary for merged shell chrome and single-pane chat collapse, or explicitly render the shell-wide navigation and search controls in only one visible pane, with regression coverage at exactly 1100px. Do we have a high-confidence way to reproduce the issue? Yes, from source: open a configured split chat at exactly 1100 CSS pixels in a plain browser; merged chrome is active while the 1099px narrow-layout query is not, allowing duplicate shell-wide controls across visible panes. Is this the best way to solve the issue? No, not yet; consolidating the chrome and sharing the mobile-navigation predicate are sound, but the implementation must remove the 1099px/1100px overlap before it is the narrowest correct solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a0fac37f141e. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +148, Tests +145, Docs 0. Total +293 across 13 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Merged via squash.
|
…nclaw#109635) * feat(ui): fold the mobile navigation row into the chat title bar On plain-browser mobile layouts the chat route drops the 58px shell topbar; the pane title bar gains a leading nav-drawer toggle and a trailing command-palette search button (~50px more chat). The shared mobile-nav breakpoint moves into one module used by shell and chat; native shells and non-chat routes keep today's chrome. * improve(ui): anchor the workspace chip right after the session title The chip now hugs the title text with the header's standard gap instead of sitting at the far right; the action cluster claims the leftover width and stays right-pinned. Where field-sizing is supported the rename input hugs its text too, so the chip tracks the title while typing. * chore(ui): keep hasNativeShellClass module-local
…nclaw#109635) * feat(ui): fold the mobile navigation row into the chat title bar On plain-browser mobile layouts the chat route drops the 58px shell topbar; the pane title bar gains a leading nav-drawer toggle and a trailing command-palette search button (~50px more chat). The shared mobile-nav breakpoint moves into one module used by shell and chat; native shells and non-chat routes keep today's chrome. * improve(ui): anchor the workspace chip right after the session title The chip now hugs the title text with the header's standard gap instead of sitting at the far right; the action cluster claims the leftover width and stays right-pinned. Where field-sizing is supported the rename input hugs its text too, so the chip tracks the title while typing. * chore(ui): keep hasNativeShellClass module-local
What Problem This Solves
Since #109422 every chat pane has a title bar, but phones then showed two stacked chrome rows — the 58px shell topbar (menu, brand, search) above the ~48px chat title bar — spending ~106px of a small screen on chrome. Separately, the title bar's workspace chip was anchored to the far right, visually disconnected from the session title it belongs to.
Why This Change Was Made
On plain-browser mobile layouts the chat route now drops the shell topbar entirely: the chat title bar absorbs its two useful controls, a leading nav-drawer toggle and a trailing command-palette search button, next to the existing title, workspace chip, and rail toggles. The mobile-nav breakpoint moved into one shared module (
ui/src/app/mobile-nav-layout.ts) consumed by both the shell and the chat page so the two sides can never disagree; the header buttons talk to the shell through two UI-local window events beside the existing command-palette contract. Native shells (openclaw-native-macos,openclaw-native-nav,openclaw-native-web-chrome) and non-chat routes keep today's chrome — their drawer layouts use the topbar row for window-chrome clearance.The chip tweak: the session title now hugs its text, so the workspace chip sits directly after it with the header's standard gap, and the action cluster claims the leftover width to stay right-pinned (also preserving the macOS drag surface). Where
field-sizing: contentis supported the inline-rename input hugs its text too, so the chip tracks the title while typing; elsewhere editing falls back to full width.User Impact
Phones get roughly 50px more chat content and a single, denser chrome row: menu, session title, workspace chip, rail toggles, and search in one place. On all widths the workspace chip now reads as part of the title ("which session, which checkout") instead of floating at the far edge. Native apps and every other page are unchanged.
Evidence
Before (phone): two stacked chrome rows —
After (phone): one merged row — menu, title, chip, toggles, search:
Desktop: the chip now anchors right after the title text (previously far right):
Validation:
ui/src/pages/chat+ app-host sweep passes except one pre-existing custom-element registry flake that fails identically on unmodifiedorigin/mainwith the same invocation.pnpm ui:i18n:verifygreen (no new strings — reusesnav.expandandchat.openCommandPalette); no generated locale artifacts touched.