Bug: error: unknown option '--no-warnings' noise in terminal
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
### 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_
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non Γ¨ ancora stata valutata.