Skip to content

fix(ui): new session skeleton jumps from sidebar top into its group - #179795

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/sidebar-pending-session-group
Oct 21, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/sidebar-pending-session-group

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: creating a session from an existing sidebar group shows its loading skeleton at the very top of the session sidebar, then the row jumps down into the group once the Gateway admits it.

Reported by @Patrick-Erichsen.

Work sessions

User Impact

User impact: a session started from a group's New session action appears in that group immediately, as the first row, and the admitted session replaces the skeleton in place without moving.

Why This Change Was Made

The New session handoff already sends the group as category on sessions.create, but the provisional sidebar row only knew its key and title, so the session list always rendered it above every section. The handoff now carries the requested category, and the sidebar renders the skeleton as the first list item of the matching group, which is where created rows land. Creates without a rendered matching group (no group, Person/Project grouping, hidden empty group) keep the existing list-level slot; a collapsed target group hides the skeleton exactly as it hides the admitted row.

Evidence

  • Reproduced through the real entry point in the mocked-Gateway browser E2E (ui/src/e2e/new-session-pending-sidebar.e2e.test.ts): open New session with ?group=Claws, defer sessions.create, start. On main the create carries category: "Claws" but the skeleton is outside the Claws section (expected +0 to be 1). With the fix the skeleton is the first row in Claws, and after admission the real row's top equals the skeleton's top (no jump).
  • pnpm test:ui:e2e ui/src/e2e/new-session-pending-sidebar.e2e.test.ts: 6/6 pass, including the existing chip/roster/pinned-agent provisional-row cases. New case ~1.2s; file ~6s of test time.
  • pnpm test on projection-memo, pinned-agents, chat-submissions, chat-page-pending-create, session-row-render, draft-submission-flow suites: 94/94 pass.
  • pnpm check:changed: format, lint, Solid controller guard, i18n, UI/core typecheck pass. Two failures are unrelated to this diff: the core test shard root budget (agents-root/gateway-root/infra tsconfig root counts) and Knip unused exports in files this PR does not touch.
  • Independent autoreview (P0–P2): clean.

Screenshots below are from the same E2E run (dark theme, synthetic sessions): before the fix, during the pending create after the fix, and after admission.

Before: pending create skeleton renders above every group

After: pending create skeleton leads the Claws group

After: admitted session takes the same slot

Creating a session from an existing sidebar group rendered the provisional
skeleton row above every section, then jumped it into the group once the
create was admitted. The handoff now carries the create's category and the
skeleton leads the matching group's list, the slot its admitted row takes.

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

clawsweeper Bot commented Oct 21, 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
roboclaw-bot marked this pull request as ready for review October 21, 2026 18:36
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 21, 2026 18:42
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR places a new session’s loading row inside its requested sidebar group until admission.

Example: Start “Draft the next release notes” in the Claws group.

  • Before: The loading row appears above all groups, then jumps into Claws.
  • After: The loading row leads Claws, and the admitted session occupies the same position.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful fix with directly inspected visual proof and a meaningful placement regression; the required CI timeout remains unclassified.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before, pending-after, and admitted-after screenshots show the Control UI’s changed section renderer placing the synthetic Claws create in its final slot; the browser scenario delays sessions.create through a mocked Gateway and checks equal row positions across admission.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Starting a session in an existing sidebar group makes its loading row jump from above all groups into the target group.
Reason: The maintainer-authored direction restores destination-aligned loading feedback with a small change and preserves intentional roster behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes a concrete sidebar placement bug still present on main, with convincing visual evidence and no introduced defect found; CI remains blocked by an unattributed Usage test timeout.

Priority: P3
Reviewed head: 7e6d2e7b9d37b1b5ff801cb14b7172a8a5505115

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI’s new-session handoff exposes temporary display metadata to the sidebar, which combines it with projected session sections until Gateway admission replaces it with an authoritative session row.

flowchart TD
  A[New session submission] --> B[Instant thread handoff]
  B --> C[Pending display metadata]
  C --> D[Sidebar section renderer]
  E[Projected session sections] --> D
  A --> F[Gateway admission]
  F --> E
Loading

Technical review

Best possible solution:

Retain this focused category-placement fix using the existing handoff, section projection, and provisional-row renderer.

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

The current-main renderer establishes the misplaced-row path, and the supplied before screenshot and reported base-failing browser assertion corroborate it; this read-only review did not run a reproduction.

Is this the best way to solve the issue?

The patch addresses the missing category at its existing producer and consumes it in the existing section renderer, with no new state owner, persisted format, or parallel rendering implementation.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 2fb12f9 adds ui/src/e2e/new-session-pending-sidebar.e2e.test.ts:68 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2fb12f9caac9; files: ui/src/e2e/new-session-pending-sidebar.e2e.test.ts)

PR surface

Source +41, Tests +64. Total +105 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 62 21 +41
Tests 1 64 0 +64
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 126 21 +105

Labels

Label changes:

  • add P3: The defect causes a visible sidebar jump during session creation without blocking creation or losing session data.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: The defect causes a visible sidebar jump during session creation without blocking creation or losing session data.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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 October 21, 2026, 4:02 PM ET / 20:02 UTC.

@roboclaw-bot
roboclaw-bot merged commit 0ea98c4 into main Oct 21, 2026
210 of 212 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/sidebar-pending-session-group branch October 21, 2026 23:41
@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 22, 2026
)

Creating a session from an existing sidebar group rendered the provisional
skeleton row above every section, then jumped it into the group once the
create was admitted. The handoff now carries the create's category and the
skeleton leads the matching group's list, the slot its admitted row takes.

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant