The best way to control Claude Code, Codex and more from any computer or phone
fix(azure-devops): file comments name the path the diff shows (#23468)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Victor Vogel committed
Oct 31, 2026 at 03:30 UTC
c0d279f18e2a7f7514f4239b5cf4e0cfd06177fd
2 files changed
+3
-3
packages/source-control-azure-devops/src/server/azureDevOpsPullRequestJson.test.ts
+2
-2
@@ -208,7 +208,7 @@ describe("decodeThreadsJson", () => {
208
});
209
});
210
211
- it("reads a thread pinned to a file as a review comment", () => {
211
+ it("reads a thread pinned to a file as a review comment on the path its diff uses", () => {
212
const comments = expectSuccess(
213
decodeThreadsJson(
214
asJson({
@@ -223,7 +223,7 @@ describe("decodeThreadsJson", () => {
223
),
224
);
225
226
- expect(comments[0]).toMatchObject({ kind: "review-comment", path: "/src/app.ts" });
226
+ expect(comments[0]).toMatchObject({ kind: "review-comment", path: "src/app.ts" });
227
});
228
229
it("keeps the replies under a thread, which are as much of the conversation", () => {
packages/source-control-azure-devops/src/server/azureDevOpsPullRequestJson.ts
+1
-1
@@ -298,7 +298,7 @@ export function decodeThreadsJson(
298
if (Exit.isFailure(decodedThread)) continue;
299
const thread = decodedThread.value;
300
if (thread.isDeleted === true) continue;
301
- const path = trimmed(thread.threadContext?.filePath);
301
+ const path = toRepositoryPath(thread.threadContext?.filePath);
302
for (const comment of thread.comments ?? []) {
303
const publishedDate = trimmed(comment.publishedDate);
304
if (