Skip to content

feat(ui): fold the mobile navigation row into the chat title bar - #109635

Merged
steipete merged 3 commits into
mainfrom
claude/ui-merged-mobile-chrome
Jul 17, 2026
Merged

steipete merged 3 commits into
mainfrom
claude/ui-merged-mobile-chrome

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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: content is 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 —

before: topbar plus title bar

After (phone): one merged row — menu, title, chip, toggles, search:

after: merged chrome

Desktop: the chip now anchors right after the title text (previously far right):

chip anchored after title

workspace menu unchanged

Validation:

  • Live vite + dev-gateway proof at 390px: single merged bar, drawer opens from the header toggle, palette opens from the header search; at 1560px the chip hugs the title and the workspace menu behaves as before.
  • Focused suites green: chat-pane-header + chat-page + app-host (new tests cover the shell class gating, event lifecycle, merged-prop plumbing, and header button dispatch/labels); the broader ui/src/pages/chat + app-host sweep passes except one pre-existing custom-element registry flake that fails identically on unmodified origin/main with the same invocation.
  • pnpm ui:i18n:verify green (no new strings — reuses nav.expand and chat.openCommandPalette); no generated locale artifacts touched.
  • Autoreview (Codex, xhigh): clean on the first pass.

steipete added 2 commits July 17, 2026 04:21
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.
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 17, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 17, 2026, 12:30 AM ET / 04:30 UTC.

Summary
The PR hides the plain-browser mobile chat topbar, moves its navigation and command-palette controls into chat pane headers, and places the workspace chip beside the session title.

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.

  • Responsive boundaries: 2 active thresholds: 1099px and 1100px. The one-pixel divergence creates a viewport where merged shell chrome and multi-pane chat layout are simultaneously active.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦐 gold shrimp
Result: needs maintainer review before merge.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Unify the merged-chrome and split-layout boundary or render the shell controls in only one pane.
  • [P2] Add a focused regression covering a split chat at exactly 1100 CSS pixels.

Next step before merge

  • The protected maintainer-labeled PR should remain in normal human review while its author or UI owner fixes the exact-1100 overlap and refreshes focused validation.

Security
Cleared: The UI, CSS, internal event-contract, test, and documentation changes introduce no concrete security or supply-chain concern.

Review findings

  • [P2] Align the merged-chrome and split-view breakpoints — ui/src/app/mobile-nav-layout.ts:4
Review details

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

  • [P2] Align the merged-chrome and split-view breakpoints — ui/src/app/mobile-nav-layout.ts:4
    At exactly 1100 CSS pixels this predicate enables merged chrome, but NARROW_SPLIT_QUERY still uses 1099px. A configured split view can therefore keep multiple panes visible while every pane renders the shell-wide drawer and command-palette buttons. Share the boundary or gate those controls to one pane, and cover the exact 1100px case.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a0fac37f141e.

Label changes

Label changes:

  • add P3: This is a bounded Control UI ergonomics feature whose remaining defect affects an exact responsive boundary rather than core runtime availability.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Before/after screenshots directly show the changed mobile and desktop layout, and the PR records an after-fix live browser run exercising both moved controls; no additional contributor proof is required for the demonstrated path.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Before/after screenshots directly show the changed mobile and desktop layout, and the PR records an after-fix live browser run exercising both moved controls; no additional contributor proof is required for the demonstrated path.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): Before/after screenshots directly show the changed mobile and desktop layout, and the PR records an after-fix live browser run exercising both moved controls; no additional contributor proof is required for the demonstrated path.

Label justifications:

  • P3: This is a bounded Control UI ergonomics feature whose remaining defect affects an exact responsive boundary rather than core runtime availability.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): Before/after screenshots directly show the changed mobile and desktop layout, and the PR records an after-fix live browser run exercising both moved controls; no additional contributor proof is required for the demonstrated path.
  • proof: sufficient: Contributor real behavior proof is sufficient. Before/after screenshots directly show the changed mobile and desktop layout, and the PR records an after-fix live browser run exercising both moved controls; no additional contributor proof is required for the demonstrated path.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Before/after screenshots directly show the changed mobile and desktop layout, and the PR records an after-fix live browser run exercising both moved controls; no additional contributor proof is required for the demonstrated path.
Evidence reviewed

PR surface:

Source +148, Tests +145, Docs 0. Total +293 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 8 159 11 +148
Tests 4 149 4 +145
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 309 16 +293

What I checked:

Likely related people:

  • steipete: The current title-bar behavior was introduced through merged pull request feat(ui): always-on chat title bar with inline rename and workspace actions #109422, and the same contributor authored the responsive follow-up affecting its central UI files. (role: feature introducer and recent area contributor; confidence: high; commits: 00a6ecb90622; files: ui/src/pages/chat/chat-page.ts, ui/src/pages/chat/components/chat-pane-header.ts, ui/src/styles/chat/split-view.css)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 9ce8ac9 into main Jul 17, 2026
93 checks passed
@steipete
steipete deleted the claude/ui-merged-mobile-chrome branch July 17, 2026 04:44
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 17, 2026
…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
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…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
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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