Repository navigation
improve(ui): make the sessions page a phone list - #190367
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7c26e8cccd19. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +585, Tests +92. Total +677 across 11 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 1, 2026, 9:17 AM ET / 14:17 UTC. |
…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.
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.
…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.
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:
…. 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.+are gone. The header's new session button covers it.Bulk select, pagination, per-row details and the row menu all stay. Wider layouts don't change.
Why This Change Was Made
+: the toolbar falls back toresolveUiDefaultAgentIdwhen no agent is selected and the header toassistantAgentId. Run through the real selection owner, they only differ when the visible roster is empty and the hello default is stale or missing, and/newthen resolves both to no agent. Native shells don't render the header button, so they keep the toolbar one.PhoneSheetintroduced 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.Evidence
Mock data layer at 390 px with real taps. Images show today's top bar until the header PR lands.
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.
session-kindse2e 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.ui:check-performance:basefails 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.