[Bug]: Azure DevOps pull requests never show profile pictures#24355

opened18d agobyTTabonx

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Sign in to Azure CLI with the DevOps extension (az login or az devops login).
  2. Add a project whose remote is an Azure DevOps repository.
  3. Open its pull requests on web, desktop, or mobile.

Expected behavior

Authors and reviewers show their Azure DevOps profile pictures, as GitHub authors do.

Actual behavior

No Azure DevOps author or reviewer ever shows a picture. Web and desktop show the first letter of the name. Mobile shows an empty space where the avatar should be.

The adapter passes Azure's imageUrl straight to the client, for example https://dev.azure.com/acme/_api/_common/identityImage?id=<guid>. That URL only answers a signed-in browser session. A request without one gets a 302 to the Visual Studio sign-in page, so the <img> fails. With a bearer token from az account get-access-token, the same URL returns 200 image/png.

Impact

Cosmetic issue

Version or commit

main @ b24e8ce2df

Environment

macOS, Azure CLI with the azure-devops extension, T3 Code web and iOS dev client