Skip to content

AzureDevops UI is broken when reporting code comments with repo_create_pull_request_thread #793

@dlecan

Description

@dlecan

For a couple of weeks, Claude generates PR code comments which breaks ADO UI, with the following error:

An unexpected error has occurred within this region of the page.
You can try reloading this component or refreshing the entire page.

TypeError: can't access property "line", s is undefined
    getIntegrationContext https://cdn.vsassets.io/ext/ms.vss-code-web/pr-details-content/ms.vss-co
de-web.pr-details-content.es6.4rpdS9.min.js:1
    addThreadToWidget https://cdn.vsassets.io/ext/ms.vss-code-web/discussion-diff-integration-cont
ent/ms.vss-code-web.discussion-diff-integration-content.es6.XZ7gQJ.min.js:1
    initialize https://cdn.vsassets.io/ext/ms.vss-code-web/discussion-diff-integration-content/ms.
vss-code-web.discussion-diff-integration-content.es6.XZ7gQJ.min.js:1
    i https://cdn.vsassets.io/ext/ms.vss-code-web/discussion-diff-integration-content/ms.vss-code-
web.discussion-diff-integration-content.es6.XZ7gQJ.min.js:1
    getMonacoIntegration https://cdn.vsassets.io/ext/ms.vss-code-web/pr-details-content/ms.vss-cod
e-web.pr-details-content.es6.4rpdS9.min.js:1 

Here is a sample of the MCP call:

azureDevOps - repo_create_pull_request_thread (MCP)(repositoryId:
                                                     "REDACTED",
                                                     pullRequestId: REDACTED, content: "REDACTED", filePath: "/path/to/file",
                                                     rightFileStartLine: 1, rightFileStartOffset: 1)
  ⎿ {                                                                                            
      "id": 74961,
      "publishedDate": "2025-12-12T09:58:06.877Z",
      "lastUpdatedDate": "2025-12-12T09:58:06.877Z",
      "status": 1,
      "comments": [
        {
          "id": 1,
          "author": {
            "displayName": "REDACTED",
            "uniqueName": "REDACTED"
          },
          "content": "REDACTED",
          "publishedDate": "2025-12-12T09:58:06.877Z",
          "lastUpdatedDate": "2025-12-12T09:58:06.877Z",
          "lastContentUpdatedDate": "2025-12-12T09:58:06.877Z"
        }
      ],
      "threadContext": {
        "filePath": "/path/to/file",
        "rightFileStart": {
          "line": 1,
          "offset": 1
        }
      }
    }

$ npx @azure-devops/mcp --version
2.2.2

Is it a bug? Which instruction could I send to Claude to correctly use this tool?

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions