feat(claude): implement workspace folder service for tracking file changes in chat sessions#312043
Open
TylerLeonhardt wants to merge 3 commits intomainfrom
Open
feat(claude): implement workspace folder service for tracking file changes in chat sessions#312043TylerLeonhardt wants to merge 3 commits intomainfrom
TylerLeonhardt wants to merge 3 commits intomainfrom
Conversation
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a Claude-scoped workspace folder service to compute/cached changed files for chat sessions, and wires it into Claude session items so the Agents app can display file changes for sessions with a working directory.
Changes:
- Introduces
IClaudeWorkspaceFolderService+ClaudeWorkspaceFolderServiceto compute changed files for a repo path/branch and cache results. - Updates
ClaudeChatSessionItemControllerto populateChatSessionItem.changes(initial load + on completion refresh). - Adds/updates Vitest coverage for the new service and the controller integration.
Show a summary per file
| File | Description |
|---|---|
| extensions/copilot/src/extension/chatSessions/vscode-node/test/claudeWorkspaceFolderService.spec.ts | New tests for caching, base-branch auto-resolution, error handling, and dispose behavior. |
| extensions/copilot/src/extension/chatSessions/vscode-node/test/claudeChatSessionContentProvider.spec.ts | Extends controller tests to cover populating item.changes and refresh-on-completed behavior. |
| extensions/copilot/src/extension/chatSessions/vscode-node/claudeWorkspaceFolderServiceImpl.ts | Implements workspace diff computation + caching and maps results to vscode.ChatSessionChangedFile. |
| extensions/copilot/src/extension/chatSessions/vscode-node/claudeChatSessionContentProvider.ts | Uses DI to create the controller and populates ChatSessionItem.changes via the new service. |
| extensions/copilot/src/extension/chatSessions/vscode-node/chatSessions.ts | Registers IClaudeWorkspaceFolderService in the Claude service collection. |
| extensions/copilot/src/extension/chatSessions/common/claudeWorkspaceFolderService.ts | Defines the new service identifier and interface contract. |
Copilot's findings
- Files reviewed: 8/8 changed files
- Comments generated: 4
DonJayamanne
previously approved these changes
Apr 23, 2026
…anges in chat sessions For now, we implement a Claude specific workspace folder service... although there is nothing Claude specific about it. This gets changes to show up in Claude sessions in the Agents App.
d2fc75b to
7cf968c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For now, we implement a Claude specific workspace folder service... although there is nothing Claude specific about it.
This gets changes to show up in Claude sessions in the Agents App.