Skip to content

Improve session action logs#319019

Merged
benibenj merged 1 commit into
mainfrom
benibenj/sparkling-gibbon
May 29, 2026
Merged

Improve session action logs#319019
benibenj merged 1 commit into
mainfrom
benibenj/sparkling-gibbon

Conversation

@benibenj
Copy link
Copy Markdown
Contributor

Copilot Generated Description: Introduce new events for session management, including logging for sending requests, archiving, unarchiving, deleting sessions, and renaming chats.

Copilot AI review requested due to automatic review settings May 29, 2026 16:37
@benibenj benibenj enabled auto-merge May 29, 2026 16:37
@benibenj benibenj self-assigned this May 29, 2026
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@sandy081

Matched files:

  • src/vs/sessions/services/sessions/browser/sessionsManagementService.ts
  • src/vs/sessions/services/sessions/browser/sessionsTelemetryReporter.ts
  • src/vs/sessions/services/sessions/common/sessionsManagement.ts
  • src/vs/sessions/services/sessions/test/browser/sessionNavigation.test.ts

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 refactors Agents window session telemetry out of SessionsManagementService into a dedicated contribution, adding lifecycle events on the session management service and expanding logged session actions.

Changes:

  • Adds new session management events for request sending and lifecycle actions.
  • Introduces SessionsTelemetryContribution to listen for service events and selected command executions.
  • Removes the old in-service telemetry reporter and registers the new contribution after workbench restore.
Show a summary per file
File Description
src/vs/sessions/services/sessions/test/browser/sessionNavigation.test.ts Updates the structural mock to satisfy the expanded session management interface.
src/vs/sessions/services/sessions/common/sessionsManagement.ts Adds request telemetry payload and new lifecycle/request events to ISessionsManagementService.
src/vs/sessions/services/sessions/browser/sessionsTelemetryReporter.ts Removes the old telemetry reporter implementation.
src/vs/sessions/services/sessions/browser/sessionsManagementService.ts Replaces direct telemetry calls with event emitters around request and lifecycle operations.
src/vs/sessions/contrib/sessions/browser/sessionsTelemetry.contribution.ts Adds the new telemetry contribution, payload helpers, classifications, and command-driven action logging.
src/vs/sessions/contrib/sessions/browser/sessions.contribution.ts Registers the new telemetry contribution.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 1

} else if (first && typeof first === 'object' && URI.isUri((first as { resource?: unknown }).resource)) {
resource = (first as { resource: URI }).resource;
}
return resource ? this._sessionsManagementService.getSession(resource) : undefined;
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: da03e4ef Current: 84197648

Added (15)

agentSessionsViewer/ApprovalRowBash/Light

current

agentSessionsViewer/ApprovalRowPowerShell/Dark

current

agentSessionsViewer/ApprovalRowPowerShell/Light

current

agentSessionsViewer/ApprovalRowLongLabel/Dark

current

agentSessionsViewer/ApprovalRowLongLabel/Light

current

agentSessionsViewer/ApprovalRow1Line/Dark

current

agentSessionsViewer/ApprovalRow1Line/Light

current

agentSessionsViewer/ApprovalRow2Lines/Dark

current

agentSessionsViewer/ApprovalRow2Lines/Light

current

agentSessionsViewer/ApprovalRow3Lines/Dark

current

agentSessionsViewer/ApprovalRow3Lines/Light

current

agentSessionsViewer/ApprovalRow4Lines/Dark

current

agentSessionsViewer/ApprovalRow4Lines/Light

current

agentSessionsViewer/ApprovalRow3LongLines/Dark

current

agentSessionsViewer/ApprovalRow3LongLines/Light

current

@benibenj benibenj merged commit 4a725c6 into main May 29, 2026
42 of 44 checks passed
@benibenj benibenj deleted the benibenj/sparkling-gibbon branch May 29, 2026 17:54
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 29, 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