Repository navigation
Description
Pull request views fail with "GitHub API rate limit exceeded" while the GitHub App sign-in still has most of its allowance left, because some list queries are always re-sent with the user's personal credential and fail when that one is used up.
What was observed
One server (0.1.11-nightly.20261117.4825), signed in with the GitHub App and with a personal credential, over one hour, read from its own trace (github.ratelimit.* and github.app_refused span attributes):
| Credential | Resource | Requests | Highest used seen |
|---|---|---|---|
| App | GraphQL (limit 10,000) | 376 | 5,493 |
| App | REST (limit 15,000) | 134 | 2,830 |
Personal, after github.app_refused |
GraphQL (limit 5,000) | 19 | 5,000 |
- All 19 personal requests were
listPullRequestsorlistPullRequestStackMemberships. Each was sent with the app token first, answered 200 with aNOT_FOUNDorFORBIDDENentry inerrors, counted as withheld (gitHubGraphQlClient.ts,refusedToAppinGitHubRequestPolicy.ts) and sent again with the personal credential. This happened on every such call, not now and then. - The personal credential's GraphQL allowance was used up by other tools on the same login, not by this server (19 requests). At
used: 5000the nextlistPullRequestsfailed withGitHubApiRateLimitError, and the following ones withSourceControlRateLimitPausedErroruntil the reset. - In the client this showed as "Couldn't load this pull request. Pull request operation detail failed: GitHub API rate limit exceeded." and, in the server log, "Pull request operation summary failed: github requests to github.com are paused until the rate limit resets."
So a user whose personal allowance is spent elsewhere (the gh CLI, agents, other machines) loses pull request lists in T3 Code although T3's own app allowance is half unused.
Expected
- When the app's answer is partly withheld and the personal credential is rate limited or paused, use what the app returned and show that part of the list, with a note that some repositories could not be read until the reset. Do not fail the whole operation.
- Do not send the whole query twice on every call. Either ask the personal credential only for what was withheld, or remember for a while which repositories the app cannot read.
- The error names which credential is limited ("your personal GitHub login" or "the T3 Code GitHub App") and when requests resume.
To check while fixing
Which operation the client's "detail" view depends on: getPullRequestDetail itself went through the app credential and succeeded on this server during the same period, so the failing "detail" operation may be a list call behind it, or may have come from another environment that has no app sign-in.
Activity
juliusmarminge commentedon Nov 19, 2026
Update after looking at a second environment of the same user: the failing "detail" view came from there, not from the fallback described above. That environment's app sign-in cannot be refreshed at all, so every request used the personal login. Filed separately as the issue linked below. What is described above still holds for the first environment: list queries for repositories the app cannot see are sent twice on every call, and they fail when the personal login is rate limited.
Filed as #.