You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: GitHub Enterprise PR work item diffs do not load #8935
GitHub Enterprise Server PR work items can open in Orca, but the file diff/content view does not load for the PR.
What happened?
When using Orca with a repository whose origin is hosted on GitHub Enterprise Server, opening a PR from the work item/task list showed the PR metadata, but the file diff area did not render the expected file contents. This made it look like the work item had no usable file diff even though the PR did have changed files.
How can we reproduce it?
Configure Orca with a repository whose origin remote points to a GitHub Enterprise Server host rather than github.com.
Open a GitHub PR work item for that repository.
Navigate to the file diff/content view for the work item.
Observe that the PR diff/file contents do not load as expected.
What seems to be causing it?
The PR work item detail path uses GitHub CLI/API calls to load PR files and file contents. Those calls need to target the Enterprise host, but this path could fall back to GitHub.com-style owner/repo handling and omit gh --hostname <enterprise-host>. As a result, file/diff API requests could be sent to the wrong host.
What changed in the proposed fix?
I opened a PR that routes PR detail API calls through the GitHub Enterprise host when the repository remote resolves to an Enterprise slug. It also preserves GitHub.com behavior and encodes GitHub contents API file paths by path segment so special characters in filenames do not break the request URL.
For GitHub Enterprise Server remotes, PR work items open with metadata but the
file diff / contents view stays empty because API calls never target the Enterprise host.
Takes the PR-diff host-routing approach from @wonjerry’s #8932 (credit), scoped to work-item details so GHES file diffs load without waiting on the broader host rewrite still open on that PR.
Activity
nwparker commentedon Jul 16, 2026
🤖 Agent handoff — reproduction kit
Status: REPRODUCED · GitHub label
has_reproWriteup (branch):
docs/bug-reproductions/8935.mdBranch with tests + docs:
nwparker/bug-repro-handoffsSummary
For GitHub Enterprise Server remotes, PR work items open with metadata but the
file diff / contents view stays empty because API calls never target the Enterprise host.
Automated re-run
Code / evidence files
src/main/github/repro-8935-ghe-pr-diff-host.test.tsHow another agent should use this
nwparker/bug-repro-handoffs(or cherry-pick therepro-*test for this issue).cannot_reproproves current tree does not show it).main; keep/adapt the repro test as a regression test that should flip behavior or stay as a guard.Posted by bug-repro orchestration so work is not trapped in a local worktree only.
nwparker commentedon Jul 17, 2026
👀 Looking at this — @nwparker picking up (repro kit + compare existing PR if any).
nwparker commentedon Jul 17, 2026
Landed a focused fix on current
mainas #9111.Takes the PR-diff host-routing approach from @wonjerry’s #8932 (credit), scoped to work-item details so GHES file diffs load without waiting on the broader host rewrite still open on that PR.