Before submitting#
Area#
apps/server, packages/source-control-azure-devops
Steps to reproduce#
- Enable review guides in Settings > Source Control.
- Open an active Azure DevOps pull request in a registered repository.
- Confirm that
az repos pr show --id <id> --organization <organization-url> --query lastMergeSourceCommit.commitId --output tsv returns a commit ID.
- Generate the pull request's review guide, through the Guide tab or
write_pull_request_guides.
Expected behavior#
T3 preserves the source commit returned by Azure and starts guide generation for that revision.
Actual behavior#
Guide generation fails before a run starts:
This host did not report the pull request's head commit.
read_pull_request_guide returns currentHeadSha: null, guide: null, and run: null, although Azure CLI returns a nonempty source commit ID for the same pull request.
Impact#
Blocks Azure DevOps review guide generation.
Version or commit#
Reproduced in desktop nightly 0.0.46-nightly.20261012.3010. The same omission exists on main at 5753207d53362608f281738eda3a9faf4e13b6be.
Environment#
macOS, T3 Code desktop nightly, authenticated Azure CLI with the Azure DevOps extension.
Investigation#
azureDevOpsPullRequestJson.ts does not decode lastMergeSourceCommit.commitId or preserve it on AzureDevOpsPullRequest. AzureDevOpsPullRequestProvider.getChangeRequest therefore supplies no headSha. PullRequestReviewGuideService.generate requires that field and rejects the request with the message above.
Azure documents the field in Get Pull Request.
Two focused regression tests reproduce the omission: one at JSON decoding and one at the provider detail read. Both report an absent head SHA before the fix.
Workaround#
No workaround verified for the built-in Guide tab. Refreshing and retrying reproduced the same failure.
Note
Grok responding on behalf of Julius.
Confirmed on
main. The Azure DevOps PR schema inpackages/source-control-azure-devops/src/server/azureDevOpsPullRequestJson.tsnever decodeslastMergeSourceCommit; the only commit IDs it reads are the per-iterationsourceRefCommit/commonRefCommitthat diffs use. As a result,AzureDevOpsPullRequestProvider.getChangeRequestreturns noheadSha, andPullRequestReviewGuideServicerejects the request with "This host did not report the pull request's head commit." There's no workaround for the Guide tab.Accepting this as a bug. Open PR #18651 targets this fix.
Related: #18592 (same missing
headShain the GitLab mapping, accepted) and #18448 (Bitbucket).