Repository navigation
Agent Host - adopt changesets breaking changes - #320636
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates VS Code’s Agent Host integration to match upstream breaking protocol changes by separating the changeset catalogue (now on SessionState.changesets) from the session-level aggregate counts (now on SessionSummary.changes), and propagates those changes through the workbench UI, sessions provider, protocol handler, persistence, and tests.
Changes:
- Replace
ChangesetSummarywithChangeset(addschangeKind) and move catalogue fromSessionSummary.changesetstoSessionState.changesets. - Introduce
ChangesSummaryonSessionSummary.changesand migrate persistence/overlay logic to use it for session list rendering. - Update consumers (workbench session list controller, sessions provider adapters, protocol server/client, and unit tests) to the new shapes.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionListController.ts | Switch session list chip data source from changeset catalogue counts to SessionSummary.changes. |
| src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts | Update sessions provider tests for new changes/changelog protocol fields. |
| src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts | Adapt provider adapter to new changes aggregate + changesets catalogue on session state; update changeset update pipeline. |
| src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionChangesets.ts | Update changeset catalogue types (Changeset) used to build UI changesets. |
| src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts | Update protocol handler tests to assert changes instead of changesets. |
| src/vs/platform/agentHost/test/node/agentSideEffects.test.ts | Adjust test setup to seed session changesets on state (not summary). |
| src/vs/platform/agentHost/test/node/agentService.test.ts | Update agent service tests for new placement of changesets on session state. |
| src/vs/platform/agentHost/test/node/agentHostTurnTelemetry.test.ts | Update telemetry tests to no longer rely on seeding summary changesets. |
| src/vs/platform/agentHost/test/node/agentHostCommitOperationHandler.test.ts | Update changeset service test stub interface to include persistChangesSummary. |
| src/vs/platform/agentHost/test/node/agentHostChangesetService.test.ts | Update changeset service tests for state-level changesets and seeding changesets via state manager. |
| src/vs/platform/agentHost/test/node/agentHostChangesetCoordinator.test.ts | Update coordinator tests for new summary persistence API. |
| src/vs/platform/agentHost/node/protocolServerHandler.ts | Emit SessionSummary.changes in listSessions response. |
| src/vs/platform/agentHost/node/agentService.ts | Seed state.changesets, surface summary.changes, and load/persist new changes summary metadata. |
| src/vs/platform/agentHost/node/agentHostStateManager.ts | Add setSessionSummaryChanges and move catalogue updates to state.changesets with structural equality gating. |
| src/vs/platform/agentHost/node/agentHostSessionGitStateService.ts | Update git-only catalogue stripping to operate on state.changesets. |
| src/vs/platform/agentHost/node/agentHostChangesetService.ts | Add changes summary persistence, refactor catalogue to no longer carry counts, and add summary computation helpers. |
| src/vs/platform/agentHost/node/agentHostChangesetCoordinator.ts | Update listSessions overlay to compute/migrate summary.changes from persisted/live state. |
| src/vs/platform/agentHost/common/state/sessionState.ts | Export updated protocol types (rename ChangesetSummary to Changeset). |
| src/vs/platform/agentHost/common/state/protocol/common/state.ts | Minor import ordering adjustment for generated protocol state wiring. |
| src/vs/platform/agentHost/common/state/protocol/channels-session/state.ts | Protocol breaking change: add SessionState.changesets and SessionSummary.changes (+ ChangesSummary type). |
| src/vs/platform/agentHost/common/state/protocol/channels-session/reducer.ts | Move changesets handling from summary to session state in reducer. |
| src/vs/platform/agentHost/common/state/protocol/channels-session/actions.ts | Update action typing/docs for SessionChangesetsChanged to use Changeset. |
| src/vs/platform/agentHost/common/state/protocol/channels-root/notifications.ts | Adjust notification docs to remove mention of rapidly-changing changesets. |
| src/vs/platform/agentHost/common/state/protocol/channels-changeset/state.ts | Protocol breaking change: rename ChangesetSummary → Changeset and add changeKind. |
| src/vs/platform/agentHost/common/state/protocol/.ahp-version | Bump synced agent host protocol version. |
| src/vs/platform/agentHost/common/changesetUri.ts | Update default catalogue entries to new Changeset shape with changeKind. |
| src/vs/platform/agentHost/common/agentService.ts | Update public metadata types to include changes?: ChangesSummary and changesets?: Changeset[]. |
| src/vs/platform/agentHost/browser/remoteAgentHostProtocolClient.ts | Map remote protocol changes field into local session metadata. |
Copilot's findings
- Files reviewed: 28/28 changed files
- Comments generated: 5
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Don Jayamanne (DonJayamanne)
approved these changes
Jun 9, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.