Repository navigation
fix(ui): new session skeleton jumps from sidebar top into its group - #179795
Conversation
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]>
|
🦞👀 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 maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +41, Tests +64. Total +105 across 7 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 October 21, 2026, 4:02 PM ET / 20:02 UTC. |
|
Merged via squash auto-merge.
|
) 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]>
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
categoryonsessions.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
ui/src/e2e/new-session-pending-sidebar.e2e.test.ts): open New session with?group=Claws, defersessions.create, start. Onmainthe create carriescategory: "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 teston 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/infratsconfig root counts) and Knip unused exports in files this PR does not touch.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.