Bug: error: unknown option '--no-warnings' noise in terminal
- ไธป่ฆ่ฏญ่จ
- Shell
- ๆๆ
- 11.2k
- ๆดพ็
- 1.9k
- ๅนณๅๅๅนถ
- 14 ๅฐๆถ 16 ๅ้
- 30 ๅคฉๅ ๅๅนถ PR
- 6
ๆ่ฟฐ
### Describe the bug
๐ Bug: error: unknown option '--no-warnings' noise in terminal
Product: GitHub Copilot CLI
Version: 0.0.409 (WinGet install)
Binary: C:\Users\neilghosh\AppData\Local\Microsoft\WinGet\Packages\GitHub.Copilot_Microsoft.Winget.Source_8wekyb3d8bbwe\copilot.exe
Environment
โโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Key โ Value โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ OS โ Windows NT 10.0.26200.0 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Node โ v22.21.0 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Git โ 2.53.0.windows.1 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Dotnet โ 8.0.418 โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ CLI Version โ 0.0.409 (WinGet), 0.0.394 (npm โ stale, not used) โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Session ID โ 568fe8d3-fc78-435b-84da-6c8307946b8f โ
โโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Repro
The error error: unknown option '--no-warnings' appears intermittently in the terminal during agent execution. --no-warnings is a Node.js flag, but it's being passed to git (confirmed: git
--no-warnings produces the exact same error).
Root Cause (suspected)
The Copilot CLI binary (compiled Go/Node hybrid, 114MB) likely sets NODE_OPTIONS=--no-warnings internally, which leaks into child git process invocations. Git doesn't recognize this flag and
prints the error to stderr.
Impact
Cosmetic only โ no functional impact. Creates noise in the terminal output during agent operations.
Workaround
$env:NODE_OPTIONS = ""
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
### Affected version
_No response_
### Steps to reproduce the behavior
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
่ดก็ฎๆๅ
่ฏไผฐ
่ฟไธช Issue ่ฟๆฒกๆ่ฏไผฐๆฐๆฎใ