Skip to content

improve: give mobile session titles more room - #181076

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/improve-mobile-workspace-views
Oct 23, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/improve-mobile-workspace-views

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Mobile session headers spend scarce width on a workspace eyebrow, avatar strip, and a separate panel button, truncating the session title.

User Impact

A compact 48px single-row header gives the title more room. Tap the title for the full name and Details; open the overflow menu for Panels, People, or the session Dashboard. Desktop controls, public/incognito indicators, and offline notices remain available.

Why This Change Was Made

Keep session identity primary on small screens without introducing another tab row or another panel owner. A single retained native menu and the mobile host preserve navigation, keyboard focus while session metadata arrives or connectivity changes, and mounted panel state. The retired header-only people grid and styles are removed (net-negative production code).

Requested by @steipete.

Work sessions

Evidence

  • Regression reproduced on the base: header was 54px; new 48px assertion failed before the fix.
  • 16 browser tests pass: 320px phone, 390px phone, 760px tablet, 852px landscape, desktop, light/dark, offline/reconnect, full-title Details, menu-to-Files navigation, and retained panels across viewport changes.
  • 50 original affected component tests pass, including People navigation/lookup retention. The follow-up adds a deterministic trigger-identity/focus regression (red before, green after); both affected component suites pass 44/44.
  • CI caught remaining E2E consumers of the retired header buttons. Those now navigate through the real overflow menu. All 94 selected browser scenarios are verified across 11 affected files (93 in the full run, then the remaining Dashboard-label correction in a targeted rerun).
  • Production UI build, UI typecheck, all UI test typecheck shards, scoped lint (zero errors; two pre-existing Solid warnings), CSS lint, and formatting pass. Independent reviews are clean after fixing offline navigation and retaining menu identity; local navigation remains available while remote session commands are hidden. Follow-up scoped lint has zero warnings/errors.
  • Screenshot fixtures are synthetic; no private session content.

Before

Before: workspace eyebrow and extra controls truncate the session title

After

After: compact one-row mobile session header with more title room

Current-main integration

Resolved the mobile-header contract conflict against c64eaf54ad0b6, retaining required presentation inputs and the compact layout. After integration: 44 component tests, 23 browser scenarios (mobile header/sharing/native navigation), UI typecheck and all eight UI-test typecheck shards passed. Scoped lint/format and fresh independent review passed.

Final browser-consumer audit found one obsolete Panels readiness wait in the Details/progress test. It reproduced on the production UI; removing the redundant wait leaves the native Details helper responsible for readiness. Both Details/progress scenarios pass, with all layout, focus, draft and scrolling assertions retained. No production change from the independently reviewed conflict resolution.

Use a single 48px row with navigation, title, and overflow actions. Keep local panel navigation available offline and reveal the full title in Details.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 22, 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 22, 2026 23:33
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 22, 2026 23:37
@roboclaw-bot
roboclaw-bot disabled auto-merge October 22, 2026 23:42
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 22, 2026
Keep one native Actions menu as session commands load or go offline. Migrate remaining mobile E2E consumers to overflow navigation.

Co-authored-by: steipete <[email protected]>
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR gives mobile session titles more space by moving Panels, People, and Dashboard actions into the overflow menu.

Example: A 390px phone displays the session “Seeing duplicate text in the session.”

  • Before: The workspace label, avatar, and separate controls truncate the title.
  • After: The compact 48px header displays the complete title with navigation and overflow controls.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Clear visual evidence and a useful, smaller implementation are outweighed by an incomplete test-consumer cutover that fails hosted CI.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected downloaded before/after browser screenshots show the changed mobile header rendering the same synthetic title with more room; the stills establish layout, while reported component and browser runs support interaction claims.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Mobile users cannot read enough of a session title because secondary identity and action controls consume header width.
Reason: Collaborator authorship supplies owner direction, and the inspected comparison demonstrates improved readability without new settings or navigation state.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this PR open: the maintainer-directed layout improvement has clear visual value, but the navigation cutover leaves browser tests broken, and GitHub reports a merge conflict.

Priority: P2
Reviewed head: 161f7bab899e80e96bed53cef716be36e6e38417

Before merge

  • Migrate all browser consumers of the removed header controls (P2) - Replacing the dedicated controls leaves the shared chat-layout helper and several direct E2E callers selecting buttons that no longer exist. For example, selectNativeLayoutAction still waits for a mobile header button named Panels, while chat-panel-layout also clicks Session dashboard and mobile-chat-session-menu waits for People. Exact-head CI records these timeouts across multiple shards. Update the shared helper and direct callers to open the overflow menu and select the corresponding menuitem, preserving their existing panel-retention, focus, and sharing assertions.
  • Complete next step - The PR author must resolve GitHub's reported merge conflict while preserving current-main header contracts.

Findings

  • [P2] Migrate all browser consumers of the removed header controls — ui/src/pages/chat/components/chat-pane-mobile-header.tsx:168-170

Tests

  • Missing end-to-end proof: The screenshots establish the visual result; interaction coverage must recover after the obsolete browser selectors are migrated.
Agent review details

How this fits together

The Control UI header consumes session presentation and connection facts, then routes user actions through the existing session menu and retained mobile panel host.

flowchart TD
  A[Session presentation] --> B[Mobile header]
  B --> C[Title and Details]
  B --> D[Overflow menu]
  D --> E[Retained mobile host]
  E --> F[Panels and People]
  D --> G[Session actions]
Loading

Technical review

Best possible solution:

Keep the compact header and existing navigation owners, and complete the browser-test migration to the overflow menu.

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

Current-main source retains the crowded layout shown in the before screenshot, and exact-head CI reproduces the obsolete-selector failures; no target code was executed during this review.

Is this the best way to solve the issue?

The presentation change is appropriately small and removes redundant UI machinery, but its test consumers must migrate with the removed controls.

Full review comments:

  • [P2] Migrate all browser consumers of the removed header controls — ui/src/pages/chat/components/chat-pane-mobile-header.tsx:168-170
    Replacing the dedicated controls leaves the shared chat-layout helper and several direct E2E callers selecting buttons that no longer exist. For example, selectNativeLayoutAction still waits for a mobile header button named Panels, while chat-panel-layout also clicks Session dashboard and mobile-chat-session-menu waits for People. Exact-head CI records these timeouts across multiple shards. Update the shared helper and direct callers to open the overflow menu and select the corresponding menuitem, preserving their existing panel-retention, focus, and sharing assertions.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 894336fe0c1c.

Provenance checked

  • Mobile header hierarchy and controls changes intended behavior with a stated reason (fd096c3: Provide a consistent project, title, People, panel-control, and connection hierarchy through explicit presentation inputs.)
  • People avatar grid changes intended behavior with a stated reason (fa4f524: Expose session identities and a People destination while preserving typed mentions and session isolation.)
  • Responsive composition and retained destinations keeps the original intent (1894bb9: Coordinate responsive headers, nested mobile destinations, focus restoration, and retained panel content.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test:ui:e2e ui/src/e2e/mobile-chat-header.e2e.test.ts ui/src/e2e/mobile-chat-session-menu.e2e.test.ts ui/src/e2e/chat-panel-layout.e2e.test.ts ui/src/e2e/desktop-panel.e2e.test.ts
  • pnpm test:ui:e2e ui/src/e2e/chat-side-panel-clearance.e2e.test.ts ui/src/e2e/chat-session-companion-focus.e2e.test.ts ui/src/e2e/chat-session-companion-clear.e2e.test.ts ui/src/e2e/chat-side-chat-typography.e2e.test.ts ui/src/e2e/chat-rail-columns.e2e.test.ts ui/src/e2e/session-dashboard-active-panel.e2e.test.ts
  • pnpm test:ui:e2e ui/src/e2e/session-color.e2e.test.ts
  • git diff --check
  • Verify exact-head required UI checks and openclaw/ci-gate pass.

What I checked:

PR surface

Source -252, Tests +3. Total -249 across 16 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 11 109 361 -252
Tests 5 46 43 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 155 404 -249

Review metrics

Metric Value Why it matters
Production versus test LOC Production +109/−361; tests +46/−43 Removing the obsolete avatar grid and header controls offsets the small overflow-action addition; production code shrinks while retaining existing navigation owners.

Labels

Label changes:

  • add P2: A useful mobile readability improvement needs a focused browser-test repair before merge.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: A useful mobile readability improvement needs a focused browser-test repair before merge.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦞 diamond lobster and patch quality is 🦪 silver shellfish.
  • 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 22, 2026, 7:49 PM ET / 23:49 UTC.

Preserve required mobile header presentation inputs while keeping the compact title layout and migrated overflow navigation.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Fixed the retired header-control consumers and the menu focus identity regression, then resolved the current-main header contract conflict in fef1c25. The PR body contains updated proof. @clawsweeper re-review

Details already waits for the current mobile header and opens through its title. Preserve all existing layout, focus, and progress assertions.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit c78f168 into main Oct 23, 2026
98 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/improve-mobile-workspace-views branch October 23, 2026 00:21
@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 23, 2026
* improve: give mobile session titles more room

Use a single 48px row with navigation, title, and overflow actions. Keep local panel navigation available offline and reveal the full title in Details.

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

* fix: retain mobile menu focus and update panel navigation tests

Keep one native Actions menu as session commands load or go offline. Migrate remaining mobile E2E consumers to overflow navigation.

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

* test: remove obsolete mobile Panels readiness wait

Details already waits for the current mobile header and opens through its title. Preserve all existing layout, focus, and progress assertions.

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

---------

Co-authored-by: steipete <[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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L 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