Skip to content

Agents - more cleaup for the branch picker default value - #341766

Merged
Ladislau Szomoru (lszomoru) merged 3 commits into
mainfrom
lszomoru/vitreous-shrimp
Oct 15, 2026
Merged

Ladislau Szomoru (lszomoru) merged 3 commits into
mainfrom
lszomoru/vitreous-shrimp

Conversation

@lszomoru

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings October 15, 2026 13:13

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.

🟡 Changes recommended

Worktree isolation regressions and incomplete test migration remain unresolved.

4 open findings
What changed in this PR

Refines Agents branch-picker defaults using structured Git HEAD and branch information.

Changes:

  • Adds getHEAD to the Git service.
  • Updates isolation eligibility and default-branch selection.
  • Adjusts Git-service mocks and branch-resolution tests.
File Description
src/​vs/​platform/​agentHost/​test/​node/​shared/​worktreeIsolation.test.ts Updates branch defaults and detached-HEAD expectations.
src/​vs/​platform/​agentHost/​test/​node/​copilotGitProject.test.ts Adds getHEAD mock.
src/​vs/​platform/​agentHost/​test/​node/​copilotAgent.test.ts Adds getHEAD mock.
src/​vs/​platform/​agentHost/​test/​node/​agentService.test.ts Updates Git-service interface stubs.
src/​vs/​platform/​agentHost/​test/​node/​agentHostPullRequestOperationHandler.test.ts Adds getHEAD mock.
src/​vs/​platform/​agentHost/​test/​node/​agentHostGitService.test.ts Tests attached and detached HEAD resolution.
src/​vs/​platform/​agentHost/​test/​node/​agentHostDiscardChangesOperationHandler.test.ts Adds getHEAD mock.
src/​vs/​platform/​agentHost/​test/​node/​agentHostCommitOperationHandler.test.ts Adds getHEAD mock.
src/​vs/​platform/​agentHost/​test/​common/​sessionTestHelpers.ts Extends the shared Git-service stub.
src/​vs/​platform/​agentHost/​node/​shared/​worktreeIsolation.ts Uses structured branches for isolation configuration.
src/​vs/​platform/​agentHost/​node/​agentHostGitService.ts Implements HEAD resolution.
src/​vs/​platform/​agentHost/​common/​agentHostGitService.ts Declares the getHEAD contract.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

5 participants