improve(ui): keep sidebar sessions inline and draggable#102558
Merged
Conversation
Contributor
Author
|
Land-ready on exact head
|
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #54397
AI-assisted with Codex; implementation and behavior were reviewed against the surrounding session-management paths.
What Problem This Solves
Resolves a Control UI problem where the sidebar showed only nine unpinned sessions and sent the rest behind an All sessions footer. Existing custom groups could be named and assigned through menus, but users could not directly drop sessions into groups, collapse long groups, or drag groups into a preferred order.
Why This Change Was Made
The sidebar now renders every active session loaded for the selected agent in one continuous scroll area and removes the redundant All sessions footer. It builds on the existing session
categorycontract: session membership remains server-persisted, while group order and collapsed state remain browser-local; explicit drag grips and before/after drop targets make every group ordering reachable.User Impact
Users can see the full loaded session list inline, create groups from the sidebar header, drag sessions into groups or back to Ungrouped, collapse or expand sections, and reorder custom groups. Group order and collapsed state survive reloads; rename/delete and menu-based grouping remain available, including the existing behavior that deleting a group keeps its sessions.
Evidence
corepack pnpm test ui/src/pages/chat/chat-page.test.ts ui/src/lib/sessions/navigation.test.ts ui/src/lib/sessions/grouping.test.ts ui/src/lib/sessions/custom-groups.test.ts— 38 tests passed on Blacksmith Testbox, including the existing sidebar-to-chat split-drop contract.OPENCLAW_CAPTURE_UI_PROOF=1 corepack pnpm test ui/src/e2e/session-management.e2e.test.ts— 6 Chromium scenarios passed, covering 12 inline sessions, empty-group creation, session/group drag-and-drop, before/after reorder, collapse/expand persistence, pinned-session ungrouping, rename, and delete.env OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed— type, lint, docs, and changed-test gate passed on Blacksmith Testbox.