github / github/copilot-cli

Voice mode dowload fails with corporate proxy ENOTFOUND

オープン
#4,083 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
area:installation area:networking
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
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 の回避策を確認し、その後、報告されたプロキシ環境を使って /voice のダウンロードを再現します。完了条件は、NODE_OPTIONS に依存せず、設定された企業プロキシ経由で Microsoft.AI.Foundry.Local.Core パッケージを正常にダウンロードできることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js
領域
networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。