Skip to content

fix(ui): session list jumps when a new session is created - #189555

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/wild-crayfish-2
Oct 31, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/wild-crayfish-2

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

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 sessionCreateDisplay API and the row's skeleton title. Listed rows that are still naming carry aria-busy and 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-controllers and 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)

    Before After
    While creating Before: skeleton row while creating After: no placeholder while creating
    Once listed Before: listed row After: listed row
  • Local review: autoreview (Codex) in branch mode, merge base 2b29d8b → 19feb7e (the publisher's tracking commit 919efa7 changes 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-fast and openclaw/security-sensitive-review pass.

Worked on by

roboclaw-bot and others added 2 commits October 31, 2026 16:25
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
@clawsweeper

clawsweeper Bot commented Oct 31, 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

Copy link
Copy Markdown
Collaborator Author

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.

before-1-creating after-1-creating

Once listed. The final layout is the same; after the fix the row fades in instead of replacing a placeholder.

before-2-created after-2-created

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Oct 31, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 31, 2026 16:39
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This 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.

  • Before: A skeleton occupies the first slot and pushes “Weekly planning” downward.
  • After: Existing rows stay put until the Gateway lists the new session.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused simplification with useful browser evidence and green exact-head checks; one low-impact title-fade defect remains.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored PR is outside the ordinary contributor proof gate; inspected browser screenshots establish placeholder removal and final row layout using synthetic mocked-Gateway sessions.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Starting a session immediately displaces existing sidebar rows with a temporary skeleton.
Reason: The maintainer-authored PR records the presentation choice, and deleting the provisional path reduces complexity while retaining creation feedback in chat.

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
Reviewed head: 919efa7a0519eb98ec2feb2887a91a1b1f27662d

Before merge

  • Animate the stable title wrapper when naming completes (P3) - When an unnamed listed session receives “Release review”, marqueeLabel reruns because marqueeLabelTemplate reads label() and creates a new HoverMarquee. The .sidebar-recent-session__name element therefore gets replaced exactly when titlePending clears. Its replacement starts at opacity 1 without a previous rendered opacity, so the added transition cannot fade the name in. Keeping the outer row element, as the revised test asserts, does not preserve this inner element. Put the opacity rule and transition on the existing stable title-row wrapper instead.

Findings

  • [P3] Animate the stable title wrapper when naming completes — ui/src/styles/layout.css:4031-4032

Tests

  • Missing end-to-end proof: The supplied still images and class assertions do not demonstrate the naming opacity transition, and no red-base run of the revised regression is supplied.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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:

  • [P3] Animate the stable title wrapper when naming completes — ui/src/styles/layout.css:4031-4032
    When an unnamed listed session receives “Release review”, marqueeLabel reruns because marqueeLabelTemplate reads label() and creates a new HoverMarquee. The .sidebar-recent-session__name element therefore gets replaced exactly when titlePending clears. Its replacement starts at opacity 1 without a previous rendered opacity, so the added transition cannot fade the name in. Keeping the outer row element, as the revised test asserts, does not preserve this inner element. Put the opacity rule and transition on the existing stable title-row wrapper instead.
    Confidence: 0.93

Overall correctness: patch is correct
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/components/app-sidebar.projection-memo.test.ts --maxWorkers=1
  • pnpm test ui/src/e2e/new-session-pending-sidebar.e2e.test.ts --maxWorkers=1
  • pnpm lint:ui:styles
  • Verify a named update starts an opacity transition on the retained title wrapper and reduced motion makes it immediate.

What I checked:

PR surface

Source -93, Tests -85, Docs +2. Total -176 across 12 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 25 118 -93
Tests 3 50 135 -85
Docs 1 6 4 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 81 257 -176

Review metrics

Metric Value Why it matters
Production versus test delta Production +25/−118; tests +50/−135. The reduction removes the superseded provisional presentation and adapts its existing behavioral coverage without adding another owner.

Labels

Label changes:

  • add P3: This is sidebar presentation polish; the remaining title-transition defect does not block session creation or navigation.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is sidebar presentation polish; the remaining title-transition defect does not block session creation or navigation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Verify the corrected naming fade in a browser while the listed session changes from unnamed to named.

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 31, 2026, 12:54 PM ET / 16:54 UTC.

@roboclaw-bot
roboclaw-bot merged commit e570442 into main Oct 31, 2026
172 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/wild-crayfish-2 branch October 31, 2026 17:01
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 docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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