Skip to content

sessions: refine project grouping in agent sessions view#304916

Merged
osortega merged 4 commits intomainfrom
copilot/evident-constrictor
Mar 26, 2026
Merged

sessions: refine project grouping in agent sessions view#304916
osortega merged 4 commits intomainfrom
copilot/evident-constrictor

Conversation

@osortega
Copy link
Contributor

Summary

This updates the dedicated agent sessions window behavior when sessions are grouped by project.

  • sort project groups alphabetically instead of letting the created/updated sort mode drive group order
  • keep pinned sessions at the top without rendering a separate Pinned section header
  • include the repository name inline for pinned sessions so they still show project context before the timestamp
  • keep the created/updated sort mode scoped to ordering sessions within each project group
  • continue to keep Other above Archived, with archived sessions always last

Why

When grouping by project, the created/updated setting should only affect session ordering inside each group. Project group names should stay stable and alphabetical, and pinned sessions should stay prominent without losing project context.

Validation

  • npm run compile-check-ts-native
  • node --experimental-strip-types build/hygiene.ts src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts

Copilot AI review requested due to automatic review settings March 25, 2026 21:48
@vs-code-engineering vs-code-engineering bot added this to the 1.114.0 milestone Mar 25, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refines how the Agent Sessions standalone window groups sessions by project/repository, aiming for stable alphabetical group ordering while keeping pinned sessions prominent without a separate “Pinned” header.

Changes:

  • Render pinned sessions as top-level items (no “Pinned” section header) in repository grouping.
  • Sort repository/project groups alphabetically (instead of inheriting global created/updated sort order).
  • Add inline repository context to pinned sessions’ status/time label when grouped by repository.

joshspicer
joshspicer previously approved these changes Mar 25, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@osortega osortega enabled auto-merge March 26, 2026 00:56
@osortega osortega merged commit 6d15406 into main Mar 26, 2026
54 of 62 checks passed
@osortega osortega deleted the copilot/evident-constrictor branch March 26, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants