Skip to content

improve(ui): make the sessions page a phone list - #190367

Merged
vyctorbrzezowski merged 7 commits into
mainfrom
brzezowski/mobile-sessions-list
Nov 2, 2026
Merged

vyctorbrzezowski merged 7 commits into
mainfrom
brzezowski/mobile-sessions-list

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

At phone width the Sessions page spends 284 px on controls before the first row, and the table sits in its own scroller with a 106 px column that cuts every session down to "agent… Sam…". The session's title can't be read.

User Impact

At 640 px and below:

  • Tabs and the agent picker share the first row. Session search, transcript search, refresh and the filter button share the second. Transcript search has its own icon, so it no longer reads as a second copy of the search field.
  • Rows read as a list: checkbox, title, key · updated, expand, …. An unread dot follows the title, so the title stays in line with the row's meta. Tapping the title or the line under it opens the chat. Rows scroll with the page.
  • The filter opens as a bottom sheet with a title and a close button. It holds the existing filters plus sort and direction. Delete all archived stays at the end of it for Archived.
  • The section label and the toolbar + are gone. The header's new session button covers it.
  • The big page title hides at 560 px and below, and the heading stays for assistive tech. From 561 to 640 px it stays on the page. improve(ui): float the phone page header #190409's floating header carries the title up to 600 px.

Bulk select, pagination, per-row details and the row menu all stay. Wider layouts don't change.

Why This Change Was Made

  • Toolbar +: the toolbar falls back to resolveUiDefaultAgentId when no agent is selected and the header to assistantAgentId. Run through the real selection owner, they only differ when the visible roster is empty and the hello default is stale or missing, and /new then resolves both to no agent. Native shells don't render the header button, so they keep the toolbar one.
  • Sheet: it uses the shared PhoneSheet introduced by improve(ui): open long filters as a shared phone sheet #190499. The sheet owns focus, dismissal and gestures; the Sessions page owns its fields and callbacks.
  • Choices in the sheet: Group by, Sort and Direction use the same picker as the sidebar's sheet, with options on a page of the sheet. Inside the sheet every control follows one rhythm: a 16px side inset, 12px between rows, a 13px label above a 40px field, and a 16px value, which is iOS's input floor. Global and Unknown read as fields, and the check carries their state: an unchecked one draws no check, and its slot stays so the label doesn't move. The close button sits at the same position as improve(ui): open long filters as a shared phone sheet #190499's sheets.
  • Select-all: the phone list has no header row, so select-all moves into the bulk bar and appears once a row is selected.
  • Copy: sort labels reuse the Automations strings and the search placeholder reuses "Search sessions", so there are no new strings.
  • Windowing: long pages still window rows, now against the page scroller.

Evidence

Mock data layer at 390 px with real taps. Images show today's top bar until the header PR lands.

Before After
Filter sheet 620 px, title kept
Absolutely dark CRT (square)

Real Safari 27.0.1 at 390 px in the mock's default dark theme, with the sheet opened by a real click, beside 320 px with long values in Chromium.

Sessions filter sheet in Safari Sessions filter sheet at 320 px with long values

  • The close button, a backdrop tap and a touch swipe on the grabber each closed the sheet in Chromium. Choosing a sort from its page reordered the list.
  • With improve(ui): float the phone page header #190409 merged locally, up to 600 px shows the title once, in the header, and 601 to 640 px shows it on the page.
  • session-kinds e2e passes, with the phone toolbar tested at 390 and 620 px. The original Sessions unit validation passed 155 tests. tsgo:ui, oxfmt, stylelint and oxlint pass.
  • The browser test for windowing, focus and selection passes at 1280 and 390 px. The native undo case now uses ControlOrMeta and passes on macOS.
  • ui:check-performance:base fails on the CSS budget. Base is already over the cap, and this adds about 9.3 KB raw (about 1.3 KB gzip).

Integration validation

The integrated head preserves the shared PhoneSheet, existing landscape behavior and separate 390/620 px phone coverage. Group, Sort and Direction are exercised through the existing browser flow. Forty-two targeted validations and four Sessions E2E cases passed; the UI E2E typecheck and touched-file checks passed after removing an unreachable desktop test branch. The approved captures above are from the original revision.

CI run 41443787147 is not green: CSS grew by 968 bytes gzip and 6,841 bytes raw, covered by the authorized budget exception. Two isolated chat Goal keyboard tests also failed. Their ChatComposer, draft, overlay, test-helper and imported style inputs are byte-identical between the tested merge and its main parent; the test does not mount the Sessions page. The exact assertion and infrastructure cause were not reproduced. These failures are recorded as unrelated to this diff; no rerun is claimed as a repair. All remaining jobs, including UI E2E, types and security, passed.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 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.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 1, 2026
@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: 🦐 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces the phone-width Sessions table with readable list rows, toolbar search, and a filter-and-sort sheet.

Example: Open Sessions at 390 px with the session agent:forge:sample-1.

  • Before: The narrow table truncates its identity to fragments such as “agent…” and “Sam…”.
  • After: The row displays “Sample dashboard” above its key and update time.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, visually demonstrated design with a concrete retention defect and two attributable failing checks.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots of the rendered Control UI at 390 px with synthetic Gateway data show readable titles, the compact toolbar, and an opened filter sheet, including dark-theme rendering; later Safari and CRT attachments could not be inspected because of reviewer infrastructure limits.
Patch quality 🦐 gold shrimp (3/6) 3 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Phone users cannot read session titles and must navigate a control-heavy, separately scrolling table.
Reason: The inspected images show clear usability value, and this maintainer-authored PR establishes approval of the design direction.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep this PR open: the phone layout has clear user value and approved direction, but retained sheet references and two diff-caused CI failures need repair.

Priority: P2
Reviewed head: d0be01dcec22f985ea54cc76c8169583aa282b03

Before merge

  • Release filter controls and picker handles when the sheet closes (P2) - At phone width, each opening mounts a fresh FilterPanel and three pickers under Show(sheetOpen()). These sets belong to SessionsAdvancedFilters and never remove entries, so closing and reopening retains every previous control subtree and each picker’s focusElements closure until the Sessions page unmounts. The isConnected filter only excludes stale entries from traversal; it does not release them. Scope the registries to a mounted sheet component or unregister entries on disposal.
  • Update the Sessions E2E scenario for the new phone layout (P2) - The 390 px session-kinds scenario still requires a visible heading, and exact-head checks-ui-e2e (1/2) fails because this rule intentionally reduces it to 1×1 px. Later assertions also require the hidden toolbar New session link and the replaced desktop filter popover. Update that scenario to exercise phone search, the header create action, and the sheet while preserving the desktop assertions.
  • Remove the CSS growth rejected by the performance gate (P2) - Exact-head control-ui-performance rejects both total raw and gzip CSS after this added phone styling. Although the base already exceeds the ceilings, the enforced comparison permits only 64 bytes of build variance, and this PR adds substantially more. Reduce or consolidate the added styling and verify the base comparison passes; the inherited overage does not exempt this additional growth.

Findings

  • [P2] Release filter controls and picker handles when the sheet closes — ui/src/pages/sessions/sessions-filters.tsx:120-127
  • [P2] Update the Sessions E2E scenario for the new phone layout — ui/src/styles/sessions.css:890-896
  • [P2] Remove the CSS growth rejected by the performance gate — ui/src/styles/sessions.css:886-889

Tests

  • Low-value test ui/src/pages/sessions/view.test.ts: The new sort test invokes picker params.onChange directly and checks callback forwarding; remove those implementation-coupled assertions in favor of selecting options through the real picker controls.
  • Missing end-to-end proof: The existing shipped-page Sessions E2E scenario needs phone-specific assertions; red-on-base/green-on-head proof for the new phone tests is not supplied.
Agent review details

How this fits together

The Control UI Sessions page consumes Gateway session rows and existing session-owner callbacks, then renders navigation, filtering, selection, and detail controls.

flowchart LR
  A[Gateway session rows] --> B[Sessions domain owner]
  B --> C[Sessions view]
  C --> D[Phone list and row window]
  C --> E[Shared filter sheet]
  D --> F[Existing navigation and commands]
  E --> B
Loading

Technical review

Best possible solution:

Retain the responsive design and existing session owners while bounding sheet references, updating the affected E2E scenario, and eliminating the rejected CSS growth.

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

The supplied before image shows truncated phone rows, current-main source retains that layout, and exact-head CI independently demonstrates the two validation failures.

Is this the best way to solve the issue?

The redesign appropriately reuses session naming, commands, virtualization, and the shared sheet; its new focus registries should have the sheet’s lifetime rather than the page’s lifetime.

Full review comments:

  • [P2] Release filter controls and picker handles when the sheet closes — ui/src/pages/sessions/sessions-filters.tsx:120-127
    At phone width, each opening mounts a fresh FilterPanel and three pickers under Show(sheetOpen()). These sets belong to SessionsAdvancedFilters and never remove entries, so closing and reopening retains every previous control subtree and each picker’s focusElements closure until the Sessions page unmounts. The isConnected filter only excludes stale entries from traversal; it does not release them. Scope the registries to a mounted sheet component or unregister entries on disposal.
    Confidence: 0.98
  • [P2] Update the Sessions E2E scenario for the new phone layout — ui/src/styles/sessions.css:890-896
    The 390 px session-kinds scenario still requires a visible heading, and exact-head checks-ui-e2e (1/2) fails because this rule intentionally reduces it to 1×1 px. Later assertions also require the hidden toolbar New session link and the replaced desktop filter popover. Update that scenario to exercise phone search, the header create action, and the sheet while preserving the desktop assertions.
    Confidence: 1
  • [P2] Remove the CSS growth rejected by the performance gate — ui/src/styles/sessions.css:886-889
    Exact-head control-ui-performance rejects both total raw and gzip CSS after this added phone styling. Although the base already exceeds the ceilings, the enforced comparison permits only 64 bytes of build variance, and this PR adds substantially more. Reduce or consolidate the added styling and verify the base comparison passes; the inherited overage does not exempt this additional growth.
    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 7c26e8cccd19.

Provenance checked

  • Compact Sessions table and header changes intended behavior with a stated reason (improve(ui): simplify agent and session navigation #174984: Keep session management concise while sharing aligned title-and-tabs navigation with other hub pages.)
  • Filter header search changes intended behavior with a stated reason (fc1833d: Hide search behind a compact card-header control while preserving keyboard entry; this PR deliberately moves phone search into the toolbar and retains the desktop path.)
  • Windowed session rows keeps the original intent (improve(ui): speed up large Sessions tables with windowed rows #189279: Avoid mounting whole large pages while retaining logical selection, native focus, expanded drafts, and menu owners.)
  • Desktop session-key hints keeps the original intent (44ec616: Use the shared document tooltip owner instead of constructing a tooltip owner for every key cell; the desktop branch preserves this contract.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/sessions/view.test.ts --maxWorkers=1
  • pnpm --dir ui test src/pages/sessions/view.invalidation.browser.test.tsx --project browser --maxWorkers=1
  • pnpm test:ui:e2e ui/src/e2e/session-kinds.e2e.test.ts
  • pnpm tsgo:ui
  • pnpm lint:ui:styles

What I checked:

PR surface

Source +585, Tests +92. Total +677 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 695 110 +585
Tests 2 95 3 +92
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 790 113 +677

Labels

Label changes:

  • add P2: This is a useful phone-layout improvement with focused lifecycle and validation repairs, without evidence of an urgent runtime outage.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a useful phone-layout improvement with focused lifecycle and validation repairs, without evidence of an urgent runtime outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • 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 November 1, 2026, 9:17 AM ET / 14:17 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 49f60db into main Nov 2, 2026
82 of 86 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/mobile-sessions-list branch November 2, 2026 12:42
steipete added a commit that referenced this pull request Nov 2, 2026
…191157)

* fix(ui): keep the Sessions heading visible in native phone layouts

Remove the redundant phone-specific clipping rule introduced in #190367. Native hosts do not use floating page headers, so the rule hid their only visible Sessions title. Shared floating-header styles continue to hide duplicate web headings.

The unchanged 390px native header regression fails on main and passes with the deletion. Twenty affected E2E tests and three Sessions browser tests pass; Codex review through P2 is clean.

* test(ui): await the lazy capability subview before asserting rows

The composer fixture awaited only the outer content module after #189053 introduced a nested lazy skill subview. Await that real module too, preserving every row, focus, and management-link assertion. Record the single added test line.

Proof: all 16 composer-menu tests pass under Bun; controlled actual-import delay fails before and passes after. pnpm check:changed passes; Codex autoreview through P2 is scoped-clean.

* test(ui): load plugin settings before starting autosave timers

Await the settings view introduced as a lazy boundary in #189556 before the autosave fixture starts fake timers. Preserve every mutation-order and config assertion; allocate its single added test line.

Proof: controlled real-import delay fails before and passes after; all 20 candidate tests pass under Bun. pnpm check:changed --staged --base HEAD passes, and Codex autoreview through P2 is scoped-clean.

* test(ui): establish resting pointer state for theme assertions

The inactive tab correctly uses the text color while hovered. Park the pointer on the existing content panel before checking each palette so the fixture consistently measures its asserted resting colors. Preserve every color assertion and timeout.

Proof: controlled tab hover reproduces the exact CI light-theme mismatch; pointer parking passes that diagnostic and the clean WebKit file. pnpm check:changed passes; Codex autoreview through P2 is scoped-clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
Present Sessions as a compact phone list with shared filters and preserved selection, sorting, search and windowing. Integrate with the existing PhoneSheet instead of retaining a second overlay lifecycle.

Validation: targeted Sessions behavior, four E2E cases, test typecheck and fresh source review passed. CI41443787147 retains the explicitly accepted CSS budget failure (+968 bytes gzip/+6841 raw) and two source-qualified unrelated Goal keyboard fixture failures. No approved visual value or coverage requirement was removed to hide a failure.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 3, 2026
…penclaw#191157)

* fix(ui): keep the Sessions heading visible in native phone layouts

Remove the redundant phone-specific clipping rule introduced in openclaw#190367. Native hosts do not use floating page headers, so the rule hid their only visible Sessions title. Shared floating-header styles continue to hide duplicate web headings.

The unchanged 390px native header regression fails on main and passes with the deletion. Twenty affected E2E tests and three Sessions browser tests pass; Codex review through P2 is clean.

* test(ui): await the lazy capability subview before asserting rows

The composer fixture awaited only the outer content module after openclaw#189053 introduced a nested lazy skill subview. Await that real module too, preserving every row, focus, and management-link assertion. Record the single added test line.

Proof: all 16 composer-menu tests pass under Bun; controlled actual-import delay fails before and passes after. pnpm check:changed passes; Codex autoreview through P2 is scoped-clean.

* test(ui): load plugin settings before starting autosave timers

Await the settings view introduced as a lazy boundary in openclaw#189556 before the autosave fixture starts fake timers. Preserve every mutation-order and config assertion; allocate its single added test line.

Proof: controlled real-import delay fails before and passes after; all 20 candidate tests pass under Bun. pnpm check:changed --staged --base HEAD passes, and Codex autoreview through P2 is scoped-clean.

* test(ui): establish resting pointer state for theme assertions

The inactive tab correctly uses the text color while hovered. Park the pointer on the existing content panel before checking each palette so the fixture consistently measures its asserted resting colors. Preserve every color assertion and timeout.

Proof: controlled tab hover reproduces the exact CI light-theme mismatch; pointer parking passes that diagnostic and the clean WebKit file. pnpm check:changed passes; Codex autoreview through P2 is scoped-clean.
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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