Skip to content

Fix sessions pickers/quick access#312389

Merged
roblourens merged 1 commit intomainfrom
roblou/marginal-marlin
Apr 24, 2026
Merged

Fix sessions pickers/quick access#312389
roblourens merged 1 commit intomainfrom
roblou/marginal-marlin

Conversation

@roblourens
Copy link
Copy Markdown
Member

Meant to filter archived, not done

Meant to filter archived, not done
Copilot AI review requested due to automatic review settings April 24, 2026 15:56
@roblourens roblourens enabled auto-merge (squash) April 24, 2026 15:56
@roblourens roblourens self-assigned this Apr 24, 2026
Copy link
Copy Markdown
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 fixes agent session pickers/quick access so they exclude archived sessions (rather than excluding completed sessions), and ensures agent-host–provided session list items correctly surface the archived state.

Changes:

  • Introduce and reuse a shared shouldShowSessionInPicker predicate to hide archived sessions while still honoring the configured session filter.
  • Update agent sessions quick access and picker filtering to include completed sessions and exclude archived sessions.
  • Mark agent-host session list items as archived based on the SessionStatus.IsArchived flag, with added test coverage.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentSessionsDataSource.test.ts Adds unit coverage for picker filtering behavior (completed included, archived excluded).
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostChatContribution.test.ts Adds coverage ensuring agent-host refresh marks items as archived when appropriate.
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.ts Applies the shared picker predicate so quick access hides archived sessions consistently.
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.ts Implements shouldShowSessionInPicker and updates picker filtering accordingly.
src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.ts Sets archived on IChatSessionItem based on SessionStatus.IsArchived (and passes computed status).

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 0

@roblourens roblourens merged commit 559c217 into main Apr 24, 2026
30 checks passed
@roblourens roblourens deleted the roblou/marginal-marlin branch April 24, 2026 16:53
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 24, 2026
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