From f64faf33933b39bf263c12e57c84f8a877eb65e5 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 15 Dec 2025 15:54:29 +0100 Subject: [PATCH] agent sessions - rename "active" to "in progress" (#283591) --- .../chat/browser/agentSessions/agentSessionsModel.ts | 2 +- .../chat/browser/agentSessions/agentSessionsViewer.ts | 10 +++++----- src/vs/workbench/contrib/chat/browser/chatViewPane.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts b/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts index 4d32a36e7885..f138af068692 100644 --- a/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts +++ b/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts @@ -146,7 +146,7 @@ interface IAgentSessionState { } export const enum AgentSessionSection { - Active = 'active', + InProgress = 'inProgress', Today = 'today', Yesterday = 'yesterday', Week = 'week', diff --git a/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts b/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts index 4c36a1636076..b50d1c2058e0 100644 --- a/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts +++ b/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts @@ -497,7 +497,7 @@ export interface IAgentSessionsFilter { readonly limitResults?: () => number | undefined; /** - * Whether to show section headers (Active, Older, Archived). + * Whether to show section headers to group sessions. * When false, sessions are shown as a flat list. */ readonly groupResults?: () => boolean | undefined; @@ -624,7 +624,7 @@ const DAY_THRESHOLD = 24 * 60 * 60 * 1000; const WEEK_THRESHOLD = 7 * DAY_THRESHOLD; export const AgentSessionSectionLabels = { - [AgentSessionSection.Active]: localize('agentSessions.activeSection', "Active"), + [AgentSessionSection.InProgress]: localize('agentSessions.inProgressSection', "In Progress"), [AgentSessionSection.Today]: localize('agentSessions.todaySection', "Today"), [AgentSessionSection.Yesterday]: localize('agentSessions.yesterdaySection', "Yesterday"), [AgentSessionSection.Week]: localize('agentSessions.weekSection', "Week"), @@ -638,7 +638,7 @@ export function groupAgentSessions(sessions: IAgentSession[]): Map([ - [AgentSessionSection.Active, { section: AgentSessionSection.Active, label: AgentSessionSectionLabels[AgentSessionSection.Active], sessions: activeSessions }], + [AgentSessionSection.InProgress, { section: AgentSessionSection.InProgress, label: AgentSessionSectionLabels[AgentSessionSection.InProgress], sessions: inProgressSessions }], [AgentSessionSection.Today, { section: AgentSessionSection.Today, label: AgentSessionSectionLabels[AgentSessionSection.Today], sessions: todaySessions }], [AgentSessionSection.Yesterday, { section: AgentSessionSection.Yesterday, label: AgentSessionSectionLabels[AgentSessionSection.Yesterday], sessions: yesterdaySessions }], [AgentSessionSection.Week, { section: AgentSessionSection.Week, label: AgentSessionSectionLabels[AgentSessionSection.Week], sessions: weekSessions }], diff --git a/src/vs/workbench/contrib/chat/browser/chatViewPane.ts b/src/vs/workbench/contrib/chat/browser/chatViewPane.ts index 8a25c0deccbb..9d7937dbf644 100644 --- a/src/vs/workbench/contrib/chat/browser/chatViewPane.ts +++ b/src/vs/workbench/contrib/chat/browser/chatViewPane.ts @@ -249,7 +249,7 @@ export class ChatViewPane extends ViewPane implements IViewWelcomeDelegate { // Sessions Control const sessionsControl = this.createSessionsControl(parent); - // Welcome Control + // Welcome Control (used to show chat specific extension provided welcome views via `chatViewsWelcome` contribution point) const welcomeController = this.welcomeController = this._register(this.instantiationService.createInstance(ChatViewWelcomeController, parent, this, ChatAgentLocation.Chat)); // Chat Control