Skip to content

fix(ui): new-session placeholder row flashes above the sidebar session list - #174888

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/sidebar-new-session-ellipsis
Oct 17, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/sidebar-new-session-ellipsis

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: right after Start session, a nameless gray blob row flashed between the sidebar's owner/filter toolbar and the session list, above the agent header in the agent roster, then jumped into place once the Gateway admitted the session.

User Impact

User impact: the temporary "creating" row now appears where the new session will actually live: at the top of the session list, or under its agent in the agent roster. It is aligned with the real rows, so nothing flashes or jumps while the session is admitted.

Why This Change Was Made

#172863 added a provisional selected row for unadmitted creates, but rendered it once, outside both the native list and the roster groups, with its own 24px inset. The row now renders from a single helper inside its destination: the native session list body, or the matching agent's roster group, filtered by the agent id in the pending session key. It reuses the real rows' lead column and roster --team grid, so the title edge matches. Selection, no actions, rejection cleanup, and the naming blob are unchanged.

Evidence

Mocked-Gateway Control UI E2E, dark theme, sessions.create deferred so the provisional state is held. Same-frame sidebar crops:

Before After
Agent roster before roster after roster
Single agent before chip after chip
  • ui/src/e2e/new-session-pending-sidebar.e2e.test.ts: the provisional-row test now runs in both chip and roster modes and asserts the row sits in its destination container, with its title inset equal to a real row's. On main, both modes fail at the placement assertion. With the fix, all 4 tests pass (~5.3s; --maxWorkers=1 wall ~20s including the Vite build).
  • Siblings: sidebar-roster.e2e, mobile-new-conversation.e2e, app-sidebar-session-row-render.test, and app-sidebar.projection-memo.test all pass.
  • pnpm tsgo:ui and pnpm tsgo:test:ui pass, oxfmt is clean, and stylelint is clean. Oxlint shows only warnings on unchanged lines. git diff --check is clean.
  • Autoreview (Codex, P0–P2): no actionable findings.

Work sessions

The provisional row shown while the Gateway admits a new session rendered
above the whole session list, outside agent roster groups and with its own
inset, so a nameless blob appeared between the toolbar and the list and then
jumped into place. Render it at the top of the native list, or under its
agent in the roster, with the same lead column as real rows.

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

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 17, 2026 00:29
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Oct 17, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 17, 2026 00:33
@roboclaw-bot
roboclaw-bot merged commit c1d5fdb into main Oct 17, 2026
140 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/sidebar-new-session-ellipsis branch October 17, 2026 00:39
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…aw#174888)

The provisional row shown while the Gateway admits a new session rendered
above the whole session list, outside agent roster groups and with its own
inset, so a nameless blob appeared between the toolbar and the list and then
jumped into place. Render it at the top of the native list, or under its
agent in the roster, with the same lead column as real rows.

Co-authored-by: Patrick-Erichsen <[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 docs Improvements or additions to documentation size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant