Before submitting#
Area#
apps/server
Steps to reproduce#
- Use a GitHub Enterprise Server host that is only reachable through a proxy. Corporate setups commonly route HTTPS for the host through a local SOCKS5 proxy, e.g.
socks5h://localhost:8080.
- Make git and gh reach it the usual way:
git config --global http.https://github.example.com.proxy socks5h://localhost:8080, and HTTPS_PROXY=socks5://localhost:8080 gh auth login --hostname github.example.com.
- Open a project whose remote is on
github.example.com in T3 Code and look at the branch's PR status or the Pull Requests list.
Expected behavior#
T3 Code reaches the host the same way git does, and loads its PRs, checks, and issues.
Actual behavior#
Every PR lookup fails, and the server log repeats this:
WARN PR lookup failed.
operation: lookupStatusPr
errorTag: SourceControlProviderError
provider: github
providerOperation: listChangeRequests
errorDetail: Could not reach GitHub at github.example.com.
T3 Code recognizes the host as GitHub and gets a credential for it. But GitHubRest.send dials the host directly and fails with GitHubApiRequestError: Could not reach GitHub at github.example.com. Over the same network, git fetch and gh api both work through the proxy.
Impact#
Major degradation or frequent failure
Version or commit#
0.1.14-nightly.20261203.5651
Environment#
macOS. GitHub Enterprise Server behind a SOCKS5 proxy. github.com is signed in alongside it and works.
Logs or stack traces#
See above. The trace shows GitHubPullRequestApi.getViewerLogin → GitHubRest.send failing with GitHubApiRequestError: Could not reach GitHub at <host>.
Workaround#
None per host. NODE_USE_ENV_PROXY + HTTPS_PROXY (see #21922 / #35370) would send all of T3 Code's traffic through the proxy, and Node's env proxy doesn't support SOCKS5.
GitHubHttpClient already follows gh's http_unix_socket. Following git's per-URL http.<url>.proxy for the API origin would fix this without affecting other hosts. undici ships ProxyAgent and Socks5ProxyAgent for this.