Repository navigation
Description
Summary
Since updating to VS Code 1.142.0, GitHub Copilot no longer works in a WSL remote window behind an authenticating corporate proxy. Before the update, the same setup worked without any configuration inside WSL.
The new @github/copilot-sdk (1.0.19-unstable.38345923974.g3754b70) bundled in the VS Code server appears to make its own network requests from inside WSL (rust:rt_network). Unlike the previous code path, it does not use the Windows-side proxy authentication or the Windows certificate store, even though http.useLocalProxyConfiguration and http.systemCertificates are at their defaults.
Environment
- VS Code: 1.142.0 (commit 6d62b1d), Windows 11 x64 (10.0.26100)
- Remote: WSL 3.0.3, kernel 6.18.54.1, distro openSUSE Leap 15.6
- Proxy:
http.proxyset in user settings (corporate Skyhigh Secure Web Gateway)- Responds with
407andProxy-Authenticate: Negotiate,NTLM,Basic - Performs TLS inspection with a corporate root CA that exists only in the Windows certificate store
- Responds with
- The Windows user is domain-joined and has a valid Kerberos TGT and service ticket for the proxy (
HTTP/<proxy>).
Error
Error: Request managedSettings.resolve failed with message: network fetch failed: proxy Negotiate authentication failed: failed to acquire proxy credentials: gss_init_sec_context failed: No credentials were supplied, or the credentials were unavailable or inaccessible; SPNEGO cannot find mechanisms to negotiate
at handleResponse (.../vscode-jsonrpc/lib/common/connection.js:565:48)
at Object.handleMessage (.../@github/copilot-sdk/dist/client.js:61:13)
~/.copilot/logs/process-*.log (hostnames redacted):
[WARNING] [rust:rt_network::fetch] failed to acquire proxy Negotiate credentials {"proxy.host":"proxy.corp.example","proxy.port":8080,"target.host":"api.github.com","target.port":443,"spn":"HTTP/proxy.corp.example","custom_spn":false,"spn_source":"derived","reason":"credential_acquire_failed","error":"failed to acquire proxy credentials: gss_init_sec_context failed: No credentials were supplied, or the credentials were unavailable or inaccessible; SPNEGO cannot find mechanisms to negotiate"}
After a manual kinit inside WSL, proxy authentication succeeds, but certificate validation fails because the corporate inspection CA is not in the Linux trust store:
[WARNING] [rust:rt_network::fetch] proxy Negotiate tunnel failed {"proxy.host":"proxy.corp.example","proxy.port":8080,"target.host":"api.github.com","target.port":443,"reason":"io_error","error":"proxy tunnel failed: tunnel I/O error: invalid peer certificate: UnknownIssuer"}
Steps to reproduce
- On a domain-joined Windows machine behind a Negotiate/NTLM proxy with TLS inspection, set
"http.proxy"in the user settings. - Open a WSL folder with VS Code 1.142.0. The distro has no Kerberos ticket and no corporate CA installed.
- Use Copilot Chat. The request fails with the error above.
Expected
The same behavior as before 1.142.0 and as for other remote extension host traffic:
- Use the local (Windows) proxy configuration and credentials (
http.useLocalProxyConfiguration). - Trust the system certificates from the local OS (
http.systemCertificates). - At least, fall back to NTLM or to the VS Code proxy agent instead of requiring a Kerberos ticket inside WSL.
Workaround
Inside WSL: install krb5-client, configure the realm, run kinit, and copy the corporate root CA to /etc/pki/trust/anchors/ followed by update-ca-certificates. This needs a new kinit every ~10 hours.
Related: microsoft/github-copilot-appmod#207, github/copilot-cli#2978
Activity
agentHost: Forward client certificates to WSL and local containers (#…
agentHost: Forward client certificates to remote Copilot
agentHost: Use the client's proxy and Kerberos tickets for WSL and lo…
chrmarti commentedon Nov 13, 2026
guacamolebowl Could you retest on 1.146.0? With #346706, the Copilot runtime in WSL gets its Kerberos ticket from the Windows client.
guacamolebowl commentedon Nov 13, 2026
I’ve already tested version 1.145.0, and it worked. Thank you for your effort.