Sessions - add support for all changes/last turn changes for cloud sessions#308224
Merged
Sessions - add support for all changes/last turn changes for cloud sessions#308224
Conversation
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for computing “All Changes” and “Last Turn” changes for Copilot Cloud (GitHub-backed) sessions by fetching changed files between refs via the GitHub compare API and wiring those results into the Sessions Changes UI.
Changes:
- Introduces a new GitHub compare fetcher and
IGitHubService.getChangedFiles()API to list changed files between two refs. - Updates the Sessions Changes view-model to compute all/last-turn changes for cloud sessions using GitHub compare results and
copilot-prURIs. - Replaces hardcoded
'copilot-pr'scheme usage in the Changes view with a shared constant and enables the UI modes for cloud sessions.
Show a summary per file
| File | Description |
|---|---|
| src/vs/sessions/services/sessions/common/session.ts | Exports a constant for the copilot-pr scheme used by cloud-session diffs. |
| src/vs/sessions/contrib/github/common/utils.ts | Adds helper to build copilot-pr URIs for PR file content based on compare results. |
| src/vs/sessions/contrib/github/common/types.ts | Adds IGitHubChangedFile type representing compare “files changed” entries. |
| src/vs/sessions/contrib/github/browser/githubService.ts | Extends IGitHubService with getChangedFiles and wires in a new fetcher. |
| src/vs/sessions/contrib/github/browser/fetchers/githubChangesFetcher.ts | Implements REST call to GitHub compare API and maps response to IGitHubChangedFile[]. |
| src/vs/sessions/contrib/changes/browser/changesViewModel.ts | Uses GitHub compare for cloud-session all/last-turn change computation; keeps local-session behavior. |
| src/vs/sessions/contrib/changes/browser/changesView.ts | Uses the shared PR-file scheme constant and enables All/Last Turn modes for cloud sessions. |
Copilot's findings
- Files reviewed: 7/7 changed files
- Comments generated: 5
Yoyokrazy
approved these changes
Apr 7, 2026
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.
No description provided.