copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Stuck at "Waiting for device code" on Windows in PWSH and WSL

Open ukalwa opened this issue 1 year ago • 1 comments

Describe the bug

No response

Affected version

Version 0.0.327 · Commit 0cbec74

Steps to reproduce the behavior

Ran copilot in the PWSH and WSL bash but see the same issue. I am behind a corporate network but have the relevant proxy setup. For reference, gh cli works great in both shells

Expected behavior

No response

Additional context

Logs show this line: 2025-09-26T18:54:26.009Z [ERROR] Error checking for updates: TypeError: fetch failed Terminal: Windows Terminal Shell: PWSH, WSL bash OS: Windows

ukalwa avatar Sep 26 '25 18:09 ukalwa

Looks like I can simply set this $env:NODE_USE_ENV_PROXY = "1" with Node v24 and it works!

ukalwa avatar Sep 26 '25 19:09 ukalwa