[Bug]: Azure DevOps pull requests never show profile pictures#24355
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
- Sign in to Azure CLI with the DevOps extension (
az loginoraz devops login). - Add a project whose remote is an Azure DevOps repository.
- 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