sessions: add pinned sidebar section#310266
Merged
hawkticehurst merged 2 commits intoApr 15, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a dedicated “Pinned” section to the Sessions sidebar list so pinned chats render under the same section-header UI pattern as other sections, while keeping section actions appropriate for pinned content.
Changes:
- Introduce
groupSessionsForList(...)helper to centralize sorting/grouping with pinned + archived handling. - Render pinned sessions as a top “Pinned” section (using section headers) and ensure pinned sections don’t get workspace-only toolbar actions.
- Add unit tests for pinned grouping behavior and update the Sessions layout spec.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/vs/sessions/contrib/sessions/test/browser/sessionsList.test.ts | Adds test coverage for pinned/archived grouping via groupSessionsForList. |
| src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts | Adjusts archive confirmation messaging for the new pinned section behavior. |
| src/vs/sessions/contrib/sessions/browser/views/sessionsList.ts | Refactors list building to use groupSessionsForList and introduces a dedicated pinned section. |
| src/vs/sessions/LAYOUT.md | Documents the new pinned section behavior and records it in revision history. |
Yoyokrazy
previously approved these changes
Apr 15, 2026
Render pinned chats as a real section in the sessions sidebar so they inherit the standard uppercase header styling and only expose the bulk done action. Also add helper coverage for the new section grouping behavior and document the pinned section in the sessions layout spec. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Extract the pinned-vs-workspace archive confirmation message selection into a small helper to keep ArchiveSectionAction readable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
647c5b7 to
caddcbf
Compare
Yoyokrazy
approved these changes
Apr 15, 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.
Summary
Related to #310018
Pinnedsection header in the sessions sidebarMark All as Done, without workspace-specific actions likeNew SessionNotes
app.setPathon an undefined Electron app)