Skip to content

Refactor AgentService to optimize git state checks and reduce unnecessary actions#319665

Merged
DonJayamanne merged 2 commits into
mainfrom
don/plastic-kite
Jun 3, 2026
Merged

Refactor AgentService to optimize git state checks and reduce unnecessary actions#319665
DonJayamanne merged 2 commits into
mainfrom
don/plastic-kite

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 3, 2026 01:31
@DonJayamanne DonJayamanne self-assigned this Jun 3, 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

Refactors the agent-host AgentService git-state attachment path to reduce redundant session meta updates when the computed git state has not changed.

Changes:

  • Compute currentGitState once per probe and only call setSessionMeta when the git state differs.
  • Adjust control flow around git-state deduping in _attachGitState.
Show a summary per file
File Description
src/vs/platform/agentHost/node/agentService.ts Refines git-state dedupe logic to avoid unnecessary session meta updates during per-turn git probes.

Copilot's findings

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

Comment thread src/vs/platform/agentHost/node/agentService.ts
@DonJayamanne DonJayamanne marked this pull request as ready for review June 3, 2026 02:23
@DonJayamanne DonJayamanne enabled auto-merge (squash) June 3, 2026 02:23
@DonJayamanne DonJayamanne merged commit 5080a5c into main Jun 3, 2026
25 checks passed
@DonJayamanne DonJayamanne deleted the don/plastic-kite branch June 3, 2026 04:25
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 3, 2026
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.

3 participants