Skip to content

fix: update changeset labels and descriptions to reflect branch changes#317243

Draft
DonJayamanne wants to merge 2 commits into
mainfrom
don/cruel-antelope
Draft

fix: update changeset labels and descriptions to reflect branch changes#317243
DonJayamanne wants to merge 2 commits into
mainfrom
don/cruel-antelope

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 19, 2026 04:58
@DonJayamanne DonJayamanne self-assigned this May 19, 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 updates the agent-host “changesets” catalogue terminology and behavior to better reflect branch-based diffs, including updating labels/descriptions, adding a lazy refresh path for the session/branch changeset, and gating git-only catalogue entries when git state is unavailable.

Changes:

  • Rename the session-wide changeset label from “Session Changes” to “Branch Changes” and adjust default catalogue ordering.
  • Add an uncommitted changeset description and thread it through catalogue synthesis (live + persisted).
  • Add refreshSessionChangeset and trigger it on first subscription to the session changeset URI (and also when subscribing to the session URI itself), plus strip git-only catalogue entries when git state is absent.
Show a summary per file
File Description
src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts Updates expected changeset label to “Branch Changes” in protocol handler tests.
src/vs/platform/agentHost/test/node/agentSideEffects.test.ts Updates the test fake changeset service to include the new refresh hook.
src/vs/platform/agentHost/test/node/agentService.test.ts Updates expectations for new labels/order/description and adds coverage for stripping git-only catalogue entries.
src/vs/platform/agentHost/test/node/agentHostChangesetService.test.ts Updates expected default catalogue entries (label/order/description) and session entry label.
src/vs/platform/agentHost/node/agentService.ts Implements stripping of git-only catalogue entries based on git probe results.
src/vs/platform/agentHost/node/agentHostChangesetService.ts Threads optional descriptions through static catalogue entries and adds refreshSessionChangeset.
src/vs/platform/agentHost/node/agentHostChangesetCoordinator.ts Triggers session changeset refresh on first subscription and on session-URI subscription.
src/vs/platform/agentHost/common/changesetUri.ts Renames label to “Branch Changes”, adds uncommitted description, and updates the default catalogue shape.

Copilot's findings

  • Files reviewed: 8/8 changed files
  • Comments generated: 1

Comment on lines +548 to +555
* (`Branch Changes`, `Uncommitted Changes`): when the working
* directory is absent or not a git repo, those entries are stripped
* from `summary.changesets`, leaving only `This Turn`.
*/
private _attachGitState(session: URI, workingDirectory: URI | undefined): void {
const sessionKey = session.toString();
if (!workingDirectory) {
this._stripGitOnlyChangesetEntries(sessionKey);
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.

2 participants