Skip to content

sessions - tweaks to grouping by repo (fix #302453)#303250

Merged
bpasero merged 2 commits intomainfrom
ben/proper-lungfish
Mar 19, 2026
Merged

sessions - tweaks to grouping by repo (fix #302453)#303250
bpasero merged 2 commits intomainfrom
ben/proper-lungfish

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Mar 19, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 19, 2026 16:28
@bpasero bpasero enabled auto-merge (squash) March 19, 2026 16:28
@bpasero bpasero self-assigned this Mar 19, 2026
@bpasero bpasero added this to the 1.113.0 milestone Mar 19, 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

This PR adjusts how agent sessions are grouped by repository, specifically ensuring sessions without repository metadata (“Other”) are placed consistently after named repositories and before Archived sessions, and updates the Sessions view UI to reflect the new grouping control placement.

Changes:

  • Update repository-grouping logic to collect “Other” sessions separately and append that group after named repositories.
  • Remove now-unneeded ILogService plumbing from AgentSessionsDataSource construction.
  • Add a regression test asserting ordering of repo groups vs “Other” vs “Archived”, and tweak the Sessions view title menu/grouping action placement.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentSessionsDataSource.test.ts Adds a regression test ensuring “Other” is ordered after named repos and before Archived.
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts Refactors repo grouping to accumulate “Other” sessions separately and drops logging dependency.
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.ts Removes ILogService injection and stops passing it into AgentSessionsDataSource.
src/vs/sessions/contrib/sessions/browser/sessionsViewPane.ts Updates the view title submenu icon and moves “Group by Repository” into the filter submenu as a toggled item.

@bpasero bpasero merged commit 5c7192e into main Mar 19, 2026
19 checks passed
@bpasero bpasero deleted the ben/proper-lungfish branch March 19, 2026 18:44
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.

4 participants