Repository navigation
Description
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 a GitHub Enterprise Server host with
gh auth login --hostname <ghes-host>. - Open a project whose remote is a repository on that host.
- Open the Pull Requests tab, or link a pull request from that host to a thread.
Expected behavior
Pull requests from the Enterprise repository are listed and their summaries load, as they do on github.com. Stack data is left out on hosts that have no pull request stacks.
Actual behavior
The Pull Requests tab is empty, or the project shows as Unavailable. Summary reads fail, so a linked pull request never syncs and a merged one never settles its thread.
This is the bug from #20436. I am filing it again because no open issue tracks it:
- [Bug]: Pull Requests list is empty on GitHub Enterprise Server (GHES) because GraphQL documents include github.com-only
stack/stackEntryfields #20436 was closed on Oct 30 as fixed by c3a36af. That commit is the merge of refactor(github): all GitHub GraphQL on effect/graphql, one request policy for REST and GraphQL #19224, which introduced the regression. A maintainer had confirmed the bug on Oct 17. - The closing comment said to reply if it still happens. Seven people have replied there since, on stable and nightly builds up to
0.1.12-nightly.20261125.5230. - It is still on
mainat9e385083d6.PullRequestRowinpullRequestListings.graphql(L13-20) andPullRequestSummaryinpullRequestBatches.graphql(L48-55) still namestackandstackEntrybehind@include(if: $stacks).GitHubPullRequestApi.tsstill sends those documents to Enterprise hosts withstacks: false.
Cause: @include(if: false) skips a field only when the query runs. Enterprise Server validates the whole document against its schema first, and its PullRequest type has no stack or stackEntry. It rejects the document and returns no data.
This is not #35213. That issue covers Enterprise Server older than 3.19, where other fields are also missing. This one is the stack fields only, and it affects every Enterprise Server version reported so far, up to 3.22.3.
Fix: #31184. Three people have checked it against a live Enterprise Server: 3.21.7, with a screenshot, 3.19, and the queries at its current head.
Impact
Major degradation or frequent failure
Version or commit
main @ 9e38508 (source checked). Users report it on 0.1.11 stable and 0.1.12-nightly.20261125.5230.
Environment
GitHub Enterprise Server. Users have reported it on 3.16.17, 3.19, 3.20.9, 3.20.13, 3.21.4, 3.21.7, 3.21.11 and 3.22.3, with T3 Code on macOS, Windows and Linux.
Logs or stack traces
GitHubApiResponseError: GitHub returned an error: Field 'stack' doesn't exist on type 'PullRequest' (at fragment PullRequestRow.stack); Field 'stackEntry' doesn't exist on type 'PullRequest' (at fragment PullRequestRow.stackEntry); Variable $stacks is declared by PullRequestSearch but not used (at query PullRequestSearch)
GitHubPullRequestReadError: GitHub returned an unreadable getPullRequestSummary response.Screenshots, recordings, or supporting files
No response
Workaround
None in T3 Code. View pull requests on the Enterprise host in a browser or with gh, and settle threads by hand.
Drafted by Claude Fable 5.2 via Claude Code, with the reporter's approval.
Activity
juliusmarminge commentedon Nov 25, 2026
I tried to reproduce this on the current build and could not.
Commit origin/main 67918f5. No live GitHub Enterprise Server host is available, so the Pull Requests tab could not be opened against one. Instead: (1) Added two tests to packages/source-control-github/src/server/GitHubPullRequestApi.test.ts. They call listPullRequests and getPullRequestSummary with host 'ghe.example.com' and capture the GraphQL document main sends. Both fail on main: the PullRequestSearch and PullRequestSummary documents contain
stack@include(if:$stacks){number size baseRefName}stackEntry@include(if:$stacks){position}. (2) Validated those exact captured documents with graphql-js 16.14.1 against GitHub's published Enterprise Server schemas (docs.github.com/public/ghes-3.19 and ghes-3.20 schema.docs-enterprise.graphql). Both are rejected, with only these errors: 'Cannot query field "stack" on type "PullRequest"' and 'Cannot query field "stackEntry" on type "PullRequest"'. The same documents validate against the github.com schema the package vendors. This matches the reporter's log ('Field 'stack' doesn't exist on type 'PullRequest''). The failing tests are pushed on factory/repro-42930.Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.
mrmeku commentedon Nov 26, 2026
This is reproducible with the steps the bot outlined. You don't need a test server, the GHE graphql definition allows reproduction of the bug through tests. Still present at HEAD
joshgreensmith commentedon Nov 30, 2026
+1 to mrmeku, this is still present for us at HEAD