Skip to content

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Dec 13, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 13, 2025 18:44
@bpasero bpasero self-assigned this Dec 13, 2025
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 refactors the agent sessions grouping system to use more granular time-based sections. The previous two-tier system (Recent/Old) is replaced with a four-tier system (Today/Week/Older/Archived) for better organization and user experience.

Key Changes:

  • Renamed and added section types: RecentToday, OldOlder, and introduced new Week section
  • Updated session grouping logic to use calendar day boundaries for "Today" and a 7-day threshold for "Week"
  • Updated all tests to reflect the new section naming and thresholds

Reviewed changes

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

File Description
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts Updated AgentSessionSection enum with new values: Today, Week, Older (replacing Recent and Old)
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts Refactored session grouping logic to support three non-archived sections with calendar-day-based "Today" detection and 7-day "Week" threshold; updated localization keys
src/vs/workbench/contrib/chat/test/browser/agentSessionsDataSource.test.ts Updated test constants, names, assertions, and test data to match new section structure; added tests for "Week" section behavior

@bpasero bpasero added this to the December / January 2026 milestone Dec 13, 2025
@bpasero bpasero marked this pull request as ready for review December 13, 2025 19:32
@bpasero bpasero enabled auto-merge (squash) December 13, 2025 19:32
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.

2 participants