Skip to content

AgentHost - fix opening files when using checkpoint refs#323932

Merged
lszomoru merged 1 commit into
mainfrom
lszomoru/digital-aardwolf
Jul 1, 2026
Merged

AgentHost - fix opening files when using checkpoint refs#323932
lszomoru merged 1 commit into
mainfrom
lszomoru/digital-aardwolf

Conversation

@lszomoru

@lszomoru lszomoru commented Jul 1, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 1, 2026 20:23
@lszomoru lszomoru enabled auto-merge (squash) July 1, 2026 20:23
@lszomoru lszomoru self-assigned this Jul 1, 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 updates the Agent Host git blob retrieval path to support non-SHA references (e.g. checkpoint refs) when opening “before” content via git show <ref>:<path>.

Changes:

  • Widen AgentHostGitService.showBlob from hex-only SHAs to general git refs.
  • Update the IAgentHostGitService API docs/signature to use ref terminology.
  • Adjust the integration test to use ref naming for the blob source revision.
Show a summary per file
File Description
src/vs/platform/agentHost/test/node/agentHostGitService.integrationTest.ts Renames the test variable to ref for the showBlob call.
src/vs/platform/agentHost/node/agentHostGitService.ts Changes showBlob to accept a general ref (removing the prior SHA validation) and uses it in git show.
src/vs/platform/agentHost/common/agentHostGitService.ts Updates the interface documentation and parameter naming from sha to ref.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Low
Comment thread src/vs/platform/agentHost/node/agentHostGitService.ts
@lszomoru lszomoru merged commit 34e2a17 into main Jul 1, 2026
47 of 48 checks passed
@lszomoru lszomoru deleted the lszomoru/digital-aardwolf branch July 1, 2026 21:50
@vs-code-engineering vs-code-engineering Bot added this to the 1.128.0 milestone Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants