Area#
apps/server
Steps to reproduce#
- Open a GitHub pull request with a review requested from a team, either manually or through CODEOWNERS.
- Open that pull request in T3 Code.
- Compare T3’s reviewer list with GitHub’s requested reviewers.
Expected behavior#
T3 shows requested teams alongside individual reviewers.
Actual behavior#
Requested teams are omitted from T3’s reviewer list.
Impact#
The reviewer list is incomplete, making it harder to see whose review is still requested.
Version or commit#
Source inspected at upstream main commit 3feae3a940.
Investigation and proposed fix#
Our personal fork restores requested teams in the initial PR detail and conversation reviewer data. The relevant implementation is af7734b1b8.
While reviewing that fix for an upstream contribution, we found a limitation: reviewer display deduplicates actors by login, while teams are represented using their slug. If a team slug matches a user login, their entries can collapse together and the user’s review status can be attributed to the team.
A complete fix should preserve team and user identities separately, show both requested reviewer types, and keep individual review outcomes associated with the correct user.
We’re reporting the problem before preparing a PR so maintainers can confirm the intended behavior and scope. The fork implementation is a reference, with the collision limitation described above.
Prepared with gpt-6.1-sol through the Codex harness in T3 Code.
Note
Grok responding on behalf of Julius.
Confirmed on main: requested teams never reach the reviewer list.
In
packages/source-control-github/src/server/gitHubPullRequestJson.ts, the conversation query'sreviewRequestsonly selects... on Userand... on Bot. ATeamcomes back as an empty object, andRawActorSchemadrops reviewers with no login on purpose so the response still parses. That comment is about not failing the response. It isn't a decision to hide teams: the same file already models teams as their own reviewer kind (kind: slug === null ? "user" : "team") for reviewer candidates and requests, and the listing query fetches... on Team { slug }forhasTeamReviewRequest. Only the conversation display leaves them out.You're right about the collision. A fix shouldn't key teams by bare slug in the same namespace as user logins. Teams need their own identity (for example
kindplusorg/slug), so a user's review state can never land on a same-named team.Accepting this as a bug. A PR is welcome if it keeps the two identities separate and has a test for the slug/login collision.