Issues panel shows 'No open issues found' on GitHub Enterprise Server (ghe.com) repos despite a matching open issue
Describe the bug
The native in-CLI "Issues" header panel (Session | Issues | Pull requests | Gists) shows "No open issues found" for a repository hosted on GitHub Enterprise Server (a custom *.ghe.com host), even though a matching open issue exists and satisfies the panel's own default filter.
Affected version
GitHub Copilot CLI 1.0.71 (also observed on 1.0.64-3)
Environment
- OS: Windows 11
- Terminal: Windows Terminal
- Host: GitHub Enterprise Server on a custom domain (
<org>.ghe.com), not github.com
Steps to reproduce
- Open the CLI in a repository whose
originremote points at a*.ghe.comhost (not github.com). - Confirm you are logged in for that host as the issue author (
~/.copilot/config.json->lastLoggedInUser.host/.loginmatch the enterprise host and the issue's author). - Confirm via
ghthat an open issue exists and matchesis:issue is:open involves:@mefor that exact repo:
This returns at least one issue.GH_HOST=<org>.ghe.com gh issue list --repo <owner>/<repo> --search "is:open involves:@me" - Open the CLI's native header, select the Issues tab. The panel shows the filter pills
is:issue is:open involves:@me repo:<owner>/<repo>(matching step 3 exactly) but renders:No open issues found. Issues opened in this repository will appear here.
Expected behavior
The Issues panel should show the same issue(s) that gh issue list returns for the identical filter, repo, and authenticated user on the enterprise host.
Actual behavior
The panel is empty ("No open issues found") despite a confirmed matching issue existing, is:open, and authored by the exact @me user shown as logged in.
Additional context
This looks like the same class of bug as other confirmed GitHub Enterprise Server repo-resolution issues in this tracker, e.g.:
- #2751
/remote: "could not resolve repository" on an organization/enterprise repo - #2498 MCP registry returns 404 on GHE
- #703 / #166 GHE sign-in / auth gaps
My working theory is that the Issues/PR/Gists header panel resolves/queries repos assuming a github.com API base rather than the enterprise host the user is actually authenticated against, so the enterprise-hosted repo silently resolves to "no results" instead of an explicit error.
Note: the equivalent "Pull requests" panel and PR-related statusline data (gh pr list --repo) work correctly against the same enterprise host/repo, so this appears specific to the Issues panel's query path.
Workaround
Use gh issue list --repo <owner>/<repo> --search "is:open involves:@me" directly (with GH_HOST set to the enterprise host) instead of the native Issues panel.
Correction after reproducing this through a real Windows pseudoconsole: this was not a GitHub Enterprise Issues-panel bug.
The machine had active gh logins for both github.com and the enterprise host. lastLoggedInUser.host in Copilot config did not select the host for this query. Without COPILOT_GH_HOST, the owner/repo selector was resolved against github.com; with COPILOT_GH_HOST=<enterprise-host> (and GH_HOST aligned), the native panel displayed the matching issue correctly.
We fixed our launcher to choose the host per CLI session: explicit COPILOT_GH_HOST, otherwise the startup repository's authenticated origin host, otherwise an interactive choice when multiple hosts are logged in. Closing this report because the original upstream diagnosis was incorrect.
Additional correction: on Copilot CLI 1.0.71 the two environment variables require different value shapes. COPILOT_GH_HOST must be an absolute URL such as https://enterprise.example.ghe.com; GH_HOST must remain the bare host name enterprise.example.ghe.com. Setting both to the bare host allowed gh queries to work but Copilot entitlement still fell back to the github.com Free account.