Skip to content

Clicking a linked pull request on an Azure DevOps work item fails with "cannot be browsed for this project's host yet" #42934

Backlog

Description

@ericfowler303

What happened

An Azure DevOps work item (a Bug) shows its pull request under Linked pull requests, but clicking it opens Could not load pull requests: "Change requests cannot be browsed for this project's host yet." Clicking a link to the same pull request in a thread opens it in the side panel without a problem.

Diagnosis

The two clicks name the pull request differently, and the server can resolve only one of them.

  • A link in a thread is parsed from its URL, https://org.visualstudio.com/Project/_git/Repo/pullrequest/12, as repository Project/_git/Repo on that host. PullRequestService.requireProject canonicalizes host/repository to dev.azure.com/org/project/_git/repo, which is the same key as the project's checkout.
  • AzureDevOpsIssueTracker names a linked pull request's repository ${project}/${repository}, so here Project/Repo. The web issue panel (and the mobile issue screen) open that row on the work item's host with that repository. The key becomes org.visualstudio.com/project/repo, with no _git route. Azure's canonicalRepositoryKey does not recognize it and no other host claims it, so requireProject reaches its last branch and returns provider-unsupported.

On dev.azure.com the key also lacks the organization (dev.azure.com/project/repo). From reading the code, that case fails with "Project/Repo is not a project in T3 Code" instead. I have not reproduced it.

The other trackers already name a linked pull request's repository by the path its URL has below the host (owner/repo, a GitLab group path). Azure's equivalent is organization/project/_git/repository, or project/_git/repository on a legacy host.

Steps to reproduce

  1. Add a project whose remote is an Azure DevOps repository on a legacy organization host, such as https://org.visualstudio.com/Project/_git/Repo.
  2. Open a work item in that project that has a pull request in Repo linked to it, for example from a work item link in a thread.
  3. Under Linked pull requests, click the pull request.

Version

0.1.11 (desktop). The same code is on main @ f1efcfb.

Environment

Windows 11, T3 Code desktop 0.1.11, Azure CLI with the azure-devops extension, legacy *.visualstudio.com organization

Evidence

# server.trace.ndjson, one failing click
ws.rpc.pullRequests.detail
  -> PullRequestService.withRoutingCredential
  -> PullRequestService.canonicalRef
PullRequestUnavailableError: Change requests cannot be browsed for this project's host yet.
    at PullRequestService.canonicalRef (runtimeLayer-CyWe8jGq.mjs:39591:22)
# runtimeLayer-CyWe8jGq.mjs:37965 is the last `provider-unsupported` in requireProject
# (apps/server/src/pullRequest/PullRequestService.ts, `return yield* new PullRequestUnavailableError({ reason: "provider-unsupported" })`)

Related issues

#42790 shows the same message, but for a self-hosted GitHub host with no project, where the host itself is unreadable. Here the host and the repository's project are both present, but the reference names the repository in a spelling the service cannot key.

Fix applied or workaround

Nothing was changed on the machine. Workaround: open the pull request from its link in a thread, or from the Pull requests page.

Filed by

Claude Code (claude-opus-5-5), following the T3 Code triage playbook; not started by t3 triage. Posted with the reporter's approval.

Activity

  1. added
    via-triage
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions