Skip to content

AgentHost - add missing commit - #321003

Open
lszomoru wants to merge 1 commit into
mainfrom
lszomoru/extensive-earwig
Open

AgentHost - add missing commit#321003
lszomoru wants to merge 1 commit into
mainfrom
lszomoru/extensive-earwig

Conversation

@lszomoru

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 11, 2026 18:40
@lszomoru
lszomoru enabled auto-merge (squash) June 11, 2026 18:40
@lszomoru lszomoru self-assigned this Jun 11, 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 Agent Host changeset refresh/computation logic so session/branch changesets stay accurate when git state updates and when a session has no turns yet.

Changes:

  • Treat a session with no turns as having an empty session changeset ([]) instead of falling back to the edit-tracker path.
  • Refresh the Branch changeset when _meta.git is attached/updated, and ensure session refresh still runs.
Show a summary per file
File Description
src/vs/platform/agentHost/node/agentHostChangesetService.ts Returns an empty diff list for kind === 'session' when there are no turns, avoiding unintended fallback behavior.
src/vs/platform/agentHost/node/agentHostChangesetCoordinator.ts Triggers a branch refresh (in addition to uncommitted + session) when session git state changes.

Copilot's findings

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

Comment thread src/vs/platform/agentHost/node/agentHostChangesetCoordinator.ts
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