agent sessions - rename "active" to "in progress" (#283591)

This commit is contained in:
Benjamin Pasero
2025-12-15 14:54:29 +00:00
committed by GitHub
parent 3a8d4f6812
commit f64faf3393
3 changed files with 7 additions and 7 deletions
@@ -146,7 +146,7 @@ interface IAgentSessionState {
}
export const enum AgentSessionSection {
Active = 'active',
InProgress = 'inProgress',
Today = 'today',
Yesterday = 'yesterday',
Week = 'week',
@@ -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<AgentSessionS
const startOfYesterday = startOfToday - DAY_THRESHOLD;
const weekThreshold = now - WEEK_THRESHOLD;
const activeSessions: IAgentSession[] = [];
const inProgressSessions: IAgentSession[] = [];
const todaySessions: IAgentSession[] = [];
const yesterdaySessions: IAgentSession[] = [];
const weekSessions: IAgentSession[] = [];
@@ -647,7 +647,7 @@ export function groupAgentSessions(sessions: IAgentSession[]): Map<AgentSessionS
for (const session of sessions) {
if (isSessionInProgressStatus(session.status)) {
activeSessions.push(session);
inProgressSessions.push(session);
} else if (session.isArchived()) {
archivedSessions.push(session);
} else {
@@ -665,7 +665,7 @@ export function groupAgentSessions(sessions: IAgentSession[]): Map<AgentSessionS
}
return new Map<AgentSessionSection, IAgentSessionSection>([
[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 }],
@@ -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