Voice mode dowload fails with corporate proxy ENOTFOUND
- Linguagem predominante
- Shell
- Estrelas
- 11.2k
- Forks
- 1.9k
- Merge médio
- 14h 16min
- PRs com merge (30d)
- 6
Descrição
### Describe the bug
[apply-foundry-proxy-patch.js](https://github.com/user-attachments/files/29883462/apply-foundry-proxy-patch.js)
The download of the voice mode inference runtime failed with "Error: Failed to download Microsoft.AI.Foundry.Local.Core 1.2.3 from any configured feed (api.nuget.org, pkgs.dev.azure.com): getaddrinfo ENOTFOUND pkgs.dev.azure.com" behind the corporate proxy despite proper setup of Px and env vars.
Root cause: the vendored `foundry-local-sdk/script/install-utils.cjs` downloads NuGet packages using a bare `https.get()` call. Node's built-in `http`/`https` modules never read HTTP_PROXY/HTTPS_PROXY env vars on their own (unlike curl or most other tools), so the request bypasses the proxy entirely and fails to resolve DNS/connect directly.
Additionally, `copilot.exe` is a compiled Node "Single Executable Application" (SEA) binary that silently ignores NODE_OPTIONS, so the usual `-r some-proxy-shim.js` / `global-agent` tricks do NOT work here — the shim never loads inside the actual copilot process or its worker threads.
See attached file for temporary workaround.
### Affected version
GitHub Copilot CLI 1.0.70
### Steps to reproduce the behavior
Enter /voice on
Confirm download of model
Observe download failure
### Expected behavior
Setup behind corporate proxy is supported.
### Additional context
_No response_
Guia de contribuição
Direção de pesquisa
Comece por vendored foundry-local-sdk/script/install-utils.cjs e inspecione o workaround apply-foundry-proxy-patch.js anexado; em seguida, reproduza o download de /voice usando o ambiente de proxy informado. Considera-se concluído quando o pacote Microsoft.AI.Foundry.Local.Core for baixado com sucesso por meio do proxy corporativo configurado, sem depender de NODE_OPTIONS.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- node.js
- Domínio
- networking
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Pouca atividade
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 48/100