Skip to content

Agent Host - adopt changesets breaking changes - #320636

Merged
Ladislau Szomoru (lszomoru) merged 18 commits into
mainfrom
lszomoru/ahp-adoption-take-2
Jun 9, 2026
Merged

Ladislau Szomoru (lszomoru) merged 18 commits into
mainfrom
lszomoru/ahp-adoption-take-2

Conversation

@lszomoru

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 9, 2026 17:51
@lszomoru
Ladislau Szomoru (lszomoru) enabled auto-merge (squash) June 9, 2026 17:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 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 ChangesetSummary with Changeset (adds changeKind) and move catalogue from SessionSummary.changesets to SessionState.changesets.
  • Introduce ChangesSummary on SessionSummary.changes and 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

@lszomoru
Ladislau Szomoru (lszomoru) merged commit 21c5fff into main Jun 9, 2026
25 checks passed
@lszomoru
Ladislau Szomoru (lszomoru) deleted the lszomoru/ahp-adoption-take-2 branch June 9, 2026 19:40
@vs-code-engineering vs-code-engineering Bot added this to the 1.125.0 milestone Jun 9, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants