github / github/copilot-cli

Voice mode dowload fails with corporate proxy ENOTFOUND

未关闭
#4,083 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
area:installation area:networking
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### 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_

贡献指南

打开贡献指南

调研方向

从 vendored foundry-local-sdk/script/install-utils.cjs 开始,检查随附的 apply-foundry-proxy-patch.js workaround,然后使用报告的代理环境复现 /voice 下载。完成的标准是:无需依赖 NODE_OPTIONS,即可通过配置的企业代理成功下载 Microsoft.AI.Foundry.Local.Core package。

由索引模型根据 Issue 内容生成。

评估

技术栈
node.js
领域
networking
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。