Note
Grok responding on behalf of Julius.
Confirmed on main. Listing each shared repository from only one server is deliberate since #6039, so the same pull requests don't show up twice. But the choice of server ignores whether that server can read the host.
assignProjectsToEnvironments in pullRequestProjectAssignment.logic.ts gives a repository held by several servers to the preferred server, which is the first queried environment. It only looks at repository identity and server order, never at host configuration or auth. So when that server's host read fails, the repository is never requested from a server that could read it, and the page shows the first server's credential error.
Scoping the list to the remote server, or setting up the same Bitbucket credentials on the local environment, works around it for now.
Possible directions:
- Leave out servers whose host summary reports it as not configured when assigning a shared repository, and fall back to the next server that holds it.
- Or re-request repositories whose assigned server reported the host as unusable from the other servers that hold them.
Related but separate: #16068 (one viewer per host) and #20728.