Skip to content

fix(ui): mobile session creation shows a different header and menu button - #188738

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/fix-mobile-session-creation-menu-icon
Oct 30, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/fix-mobile-session-creation-menu-icon

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: on phones, the screen shown while a new session is being created uses a different header and menu button than the chat it turns into, so the header visibly changes when the session opens.

Reported by @vyctorbrzezowski.

Work sessions

User Impact

User impact: from the moment you press Start on a phone, the session shows the same header it will keep: the round, outlined menu button, the title placeholder and the Panels/⋯ capsule. Nothing jumps when the Gateway accepts the session. The /new, Sessions and other narrow-layout pages also use the same menu button as chat.

Why This Change Was Made

Before the Gateway accepts a new session, the pending screen has no mobile panel host, so its header fell back to the squeezed desktop chat header. The pending screen now renders the mobile chat header directly. Details, Panels and the session menu stay visible but disabled until the session is accepted, so the layout does not shift when they become usable.

One MobileNavToggle component now serves the shell top bar, the mobile chat header and the merged catalog header, replacing three separately styled drawer buttons. The top bar keeps its connection-status dot.

Evidence

Mocked Control UI at 390×844, dark theme. Each image is the top 220px of the screen, shown at 2×.

Before After
/new draft Draft page before Draft page after
Session being created Pending session before Pending session after

Accepted chat, for comparison: Accepted chat

  • Regression test: mobile-new-conversation.e2e.test.ts → "shows the chat header while creating a session". It holds sessions.create, asserts the pending screen renders the mobile chat header (not the desktop fallback), and checks that the menu button's size, border, background and glyph match on the draft page, the pending screen and the accepted chat. It fails on the base (32px transparent button without the glyph) and passes with this change.
  • Removed test: the merged-chrome toggle registration case in chat-pane-header.test.tsx; drawer registration now lives only in MobileNavToggle, whose release on unmount shell-chrome.test.tsx still covers. Net test-line delta stays within the test-lines ratchet.
  • Updated tests: new-session-page.instant-thread and new-session-page.transition now expect the mobile header on the pending screen at phone widths; desktop expectations are unchanged. The instant-thread case still asserts the header keeps its position when the session is accepted.
  • Browser suites: after the test trim, mobile-new-conversation, instant-thread and transition pass 30/30. Earlier full run: 69/69 passing across mobile-new-conversation, new-session transition, instant-thread, pending-sidebar, agent-creation-immediate, cloud-startup-failure, mobile-chat-header, gateway-status and native-nav-sidebar-toggle.
  • Other checks: 108/108 affected unit tests (shell chrome, chat pane header, mobile composition, app host/shell view), pnpm tsgo:ui, oxlint, oxfmt, stylelint, pnpm check:control-ui-controllers, pnpm ui:build and pnpm ui:check-performance all pass.
  • Review: local autoreview (Codex, gpt-6.1-sol, branch mode, P0–P2) on 7c0162c03fc8..9ffcaeecccdf (product change): scoped-clean, no actionable findings. The later commit only trims tests.

Worked on by

roboclaw-bot and others added 2 commits October 30, 2026 21:45
… button

While a new session is being created on a phone, the pending screen fell back
to the squeezed desktop chat header, so its menu button, padding and title
changed when the admitted chat took over. The /new topbar also kept an older
32px drawer button.

The pending screen now renders the mobile chat header itself, with session
controls disabled until the Gateway admits the session. One MobileNavToggle
serves the topbar, the mobile chat header and the merged catalog header.

Co-authored-by: vyctorbrzezowski <[email protected]>
…tton

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: c8f3a2f0-712b-48c0-b640-c11bd7f310b1
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 30, 2026 21:49
@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. labels Oct 30, 2026
roboclaw-bot and others added 2 commits October 30, 2026 22:02
Tighten the new pending-header regression test and drop the merged-chrome
toggle registration test: drawer registration is now owned solely by
MobileNavToggle, whose mount/unmount release the shell chrome test covers.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 6d015af3-65f1-41f5-829d-c069422e85f0
@roboclaw-bot
roboclaw-bot merged commit 2be271e into main Oct 30, 2026
94 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/fix-mobile-session-creation-menu-icon branch October 30, 2026 22:15
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…tton (openclaw#188738)

* fix(ui): session creation on mobile shows a different header and menu button

While a new session is being created on a phone, the pending screen fell back
to the squeezed desktop chat header, so its menu button, padding and title
changed when the admitted chat took over. The /new topbar also kept an older
32px drawer button.

The pending screen now renders the mobile chat header itself, with session
controls disabled until the Gateway admits the session. One MobileNavToggle
serves the topbar, the mobile chat header and the merged catalog header.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): mobile session creation shows a different header and menu button

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: c8f3a2f0-712b-48c0-b640-c11bd7f310b1

* test(ui): keep mobile creation coverage within the test-line budget

Tighten the new pending-header regression test and drop the merged-chrome
toggle registration test: drawer registration is now owned solely by
MobileNavToggle, whose mount/unmount release the shell chrome test covers.

Co-authored-by: vyctorbrzezowski <[email protected]>

* Publish openclaw/fix-mobile-session-creation-menu-icon

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 6d015af3-65f1-41f5-829d-c069422e85f0

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
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 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. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant