Skip to content

AgentHost - fix commit changes operation visibility#323459

Merged
lszomoru merged 3 commits into
mainfrom
lszomoru/immense-cicada
Jun 29, 2026
Merged

AgentHost - fix commit changes operation visibility#323459
lszomoru merged 3 commits into
mainfrom
lszomoru/immense-cicada

Conversation

@lszomoru

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 29, 2026 10:19
@lszomoru lszomoru enabled auto-merge (squash) June 29, 2026 10:19
@lszomoru lszomoru self-assigned this Jun 29, 2026

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 adjusts how Agent Host changeset operations are computed/advertised, with a focus on when the “Commit Changes” operation should appear.

Changes:

  • Updates the commit operation provider to consider changesetKind and gitHubState.pullRequestUrl when deciding whether to advertise “Commit Changes”.
  • Changes the changeset operation service’s internal operation collection to always return an array (including empty), affecting how operation state is dispatched.
Show a summary per file
File Description
src/vs/platform/agentHost/node/agentHostCommitOperationProvider.ts Adds additional gating for advertising the commit operation based on changeset kind and GitHub PR state.
src/vs/platform/agentHost/node/agentHostChangesetOperationService.ts Changes internal operation aggregation to return an array unconditionally, impacting whether operations are omitted vs published as empty.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 3
  • Review effort level: Low

Comment thread src/vs/platform/agentHost/node/agentHostCommitOperationProvider.ts
Comment thread src/vs/platform/agentHost/node/agentHostCommitOperationProvider.ts
@lszomoru

Copy link
Copy Markdown
Member Author

@microsoft-github-policy-service rerun

@lszomoru

Copy link
Copy Markdown
Member Author

@microsoft-github-policy-service rerun

@lszomoru lszomoru merged commit 569e472 into main Jun 29, 2026
29 checks passed
@lszomoru lszomoru deleted the lszomoru/immense-cicada branch June 29, 2026 12:56
@vs-code-engineering vs-code-engineering Bot added this to the 1.128.0 milestone Jun 29, 2026
lszomoru added a commit that referenced this pull request Jun 29, 2026
* AgentHost - fix commit changes operation visibility

* Fix tests
@KainosSLS

Copy link
Copy Markdown

Ok

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.

4 participants