Skip to content

Agents - remove the dependency on IAgentSessionsService#315992

Merged
lszomoru merged 5 commits into
mainfrom
lszomoru/experimental-silkworm
May 12, 2026
Merged

Agents - remove the dependency on IAgentSessionsService#315992
lszomoru merged 5 commits into
mainfrom
lszomoru/experimental-silkworm

Conversation

@lszomoru
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 12, 2026 11:12
@lszomoru lszomoru enabled auto-merge (squash) May 12, 2026 11:12
@lszomoru lszomoru self-assigned this May 12, 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 aims to remove the Agents window “Changes” experience’s dependency on IAgentSessionsService, relying instead on ISessionsManagementService’s active session/workspace model for repository and git state.

Changes:

  • Removed IAgentSessionsService usage from ChangesViewModel, sourcing repository info and git state from sessionManagementService.activeSession.workspace.
  • Updated repository diff retrieval to operate on URI rather than a file-path string.
  • Adjusted Copilot chat session metadata → workspace repository extraction by dropping the workingDirectoryPath fallback.
Show a summary per file
File Description
src/vs/sessions/contrib/copilotChatSessions/browser/copilotChatSessionsProvider.ts Updates how repository/worktree URIs are derived from agent session metadata (notably removing workingDirectoryPath handling).
src/vs/sessions/contrib/changes/browser/changesViewModel.ts Removes IAgentSessionsService dependency and switches repository detection/diff logic to use the sessions management workspace model and URI inputs.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 3

Comment thread src/vs/sessions/contrib/changes/browser/changesViewModel.ts
Comment thread src/vs/sessions/contrib/changes/browser/changesViewModel.ts Outdated
alexr00
alexr00 previously approved these changes May 12, 2026
@lszomoru lszomoru merged commit 03d0047 into main May 12, 2026
25 checks passed
@lszomoru lszomoru deleted the lszomoru/experimental-silkworm branch May 12, 2026 15:12
@vs-code-engineering vs-code-engineering Bot added this to the 1.121.0 milestone May 12, 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.

4 participants