If GitHub Copilot Chat shows “Copilot took too long to get ready” in VS Code on WSL, start by checking whether WSL can reach GitHub. DNS is one possible cause, especially after connecting to a VPN. Proxy, certificate, and sign-in errors can also prevent Chat from starting. The Linux commands below run in Ubuntu on WSL 2.
1. Check DNS and HTTPS from WSL
Open a terminal in the affected WSL window. Check whether /etc/resolv.conf is a file or a symbolic link, then look up the Copilot Chat hostname.
ls -l /etc/resolv.conf
cat /etc/resolv.conf
getent ahosts api.githubcopilot.com
If your organization uses Copilot Business and its diagnostics show the Business hostname, check it too. See the GitHub Copilot allowlist for domains used by other plans.
getent ahosts api.business.githubcopilot.com
A successful lookup only confirms name resolution. Use GitHub’s Chat connectivity check to test HTTPS separately.
curl -v --connect-timeout 10 --max-time 20 https://api.githubcopilot.com/_ping
HTTP 200 confirms that curl reached this endpoint. A certificate or proxy error points to a different part of the connection. Run the same lookup in Windows PowerShell with Resolve-DnsName api.githubcopilot.com. If Windows resolves it but WSL does not, check WSL DNS next. If Windows also fails, check Windows or VPN DNS first.
2. Check WSL DNS tunneling
On Windows 11 version 22H2 or later, DNS tunneling is enabled by default in current WSL. It passes WSL DNS queries through Windows so VPN DNS policies can apply. A public DNS server can return NXDOMAIN for a private hostname, so listing a corporate resolver after a public one is unreliable. Keep the DNS configuration approved for your network. See Microsoft’s WSL troubleshooting guide.
If you previously disabled DNS tunneling, open %UserProfile%\.wslconfig on Windows and merge this into the existing [wsl2] section.
[wsl2]
dnsTunneling=true
In Ubuntu, check /etc/wsl.conf. If its [network] section contains generateResolvConf=false, remove that override or change it to true. DNS tunneling requires WSL to generate the resolver configuration. If you previously replaced /etc/resolv.conf manually, back it up and check whether WSL regenerates it after restarting.
Save any work running in WSL, then run this in PowerShell. It stops all running WSL distributions.
wsl --shutdown
Reopen WSL and repeat the DNS and HTTPS checks. If VPN connectivity still fails on supported Windows 11 versions, test networkingMode=mirrored under [wsl2], restart WSL, and retest. If it does not help, remove that setting and restart again. See Microsoft’s WSL networking guide for requirements.
3. Check Copilot diagnostics and sign-in
In VS Code, run GitHub Copilot: Chat Diagnostics from the Command Palette. Check the report for failed endpoints and proxy errors, then look at the GitHub Copilot Chat output channel if needed. On a managed network, ask your administrator to compare the failures with GitHub’s allowlist and your proxy configuration. See VS Code’s troubleshooting guide.
Update VS Code and check that the built-in GitHub Copilot Chat extension is enabled. If the diagnostics indicate an account issue, open Accounts in the Activity Bar, sign out of the GitHub account, then use the Copilot status menu to sign in with the account that has Copilot access. See VS Code’s Copilot setup guide.
If other services also time out from WSL, compare the symptoms with the guides for npm registry timeouts and Supabase connection timeouts.
Verify Copilot Chat works
Open Copilot Chat in the same WSL workspace and send a short prompt. If Chat still fails, use the latest diagnostic error to decide whether to check the network or the GitHub account. For a startup error in the Codex extension, see how to fix Codex startup in VS Code on Windows and WSL.


