Repository navigation
fix(ui): session list jumps when a new session is created - #189555
Conversation
Creating a session inserted a provisional sidebar row with a skeleton title that the listed row later replaced, which made the session list jump. The sidebar now adds nothing until the Gateway lists the session; the listed row fades in, and while naming runs its title stays blank and fades in with the name. The chat header keeps its naming placeholder. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 631dd522-e9e2-4eb4-8abb-c26b7c7f49b9
|
🦞👀 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. |
|
Before/after: sidebar during a new-session create, captured from the mocked-Gateway Control UI E2E harness with synthetic sessions (1280×720, dark). While creating. Before: a skeleton row takes the top slot and pushes the list down. After: no placeholder, and existing rows stay put. Once listed. The final layout is the same; after the fix the row fades in instead of replacing a placeholder. |
|
Codex review: needs changes before merge. What this changesThis PR removes provisional sidebar session rows and adds entrance and naming fades to listed rows. Example: Start a session beside “Weekly planning” while session creation is pending.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: removing the provisional row implements the recorded direction, but the title fade needs a small correction. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI sidebar projects Gateway session membership and naming state into session rows, while the chat handoff owns pending creation and navigation. flowchart LR
A[Start session] --> B[Chat submission owner]
B --> C[Gateway session creation]
C --> D[Session list owner]
D --> E[Sidebar projection]
E --> F[Session row renderer]
B --> G[Pending chat header]
Technical reviewBest possible solution: Keep the provisional-row removal and apply naming opacity and its transition to the existing stable title-row wrapper. Do we have a high-confidence way to reproduce the issue? Current main inserts the provisional row before listed membership, and the inspected before/after browser screenshots show the resulting displacement; no target code was executed during this review. Is this the best way to solve the issue? Removing the provisional presentation is a small, complete cutover under the recorded owner direction, but the title transition must use an element that survives the naming update. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d08817b95f3b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource -93, Tests -85, Docs +2. Total -176 across 12 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 31, 2026, 12:54 PM ET / 16:54 UTC. |




What Problem This Solves
Fixes: the sidebar session list jumps when you start a new session. A skeleton placeholder row was inserted at the top while the session was being created, then replaced by the real row.
User Impact
User impact: starting a session no longer shifts the sidebar. The new row appears once the Gateway lists the session and fades in. While automatic naming runs, its title stays blank and fades in with the name. The chat header keeps its naming placeholder, and reduced motion turns the fades off.
Why This Change Was Made
Requested by @vyctorbrzezowski: remove the sidebar skeleton and show the row only once the session exists, with a gentle entrance. The provisional create row and its placement logic in the session list and custom-group sections are removed, along with the host's
sessionCreateDisplayAPI and the row's skeleton title. Listed rows that are still naming carryaria-busyand a fade class instead. A session whose name was prepared before Start appears without the fade. That case is uncommon and is accepted rather than adding more code for it.Production delta: removes the provisional-row renderer, its section/list placement and
sessionCreateDisplay(net −176 lines across 12 files, including tests and docs).Evidence
Focused tests, run locally on this head's source:
ui/src/e2e/new-session-pending-sidebar.e2e.test.ts: 4/4 pass. No sidebar skeleton or selected row while creating in chip, roster and pinned-agent modes, and the draft is restored on rejection. A group-targeted create lands at the top of its group only once listed, and existing rows do not move before admission.ui/src/components/app-sidebar.projection-memo.test.ts: 17/17 pass. No stand-in row from the accepted title. The listed row is marked naming and busy, then the same row element takes the name.ui/src/components/sidebar-agent-roster-work.browser.test.tsx: 4/4 pass.tsgo -p tsconfig.ui.json, oxlint, stylelint,pnpm check:control-ui-controllersand the format check all pass.Before/after screenshots (mocked-Gateway E2E harness, synthetic sessions, 1280×720 dark). Details: fix(ui): session list jumps when a new session is created #189555 (comment)
Local review: autoreview (Codex) in branch mode, merge base
2b29d8b→19feb7e(the publisher's tracking commit919efa7changes no files), max priority P1. Result:scoped-clean, no findings. Local ClawSweeper was not set up on this host.PR CI on
919efa7:openclaw/ci-gate,security-fastandopenclaw/security-sensitive-reviewpass.Worked on by