github / github/copilot-cli

Bug: error: unknown option '--no-warnings' noise in terminal

ๆœช้—œ้–‰
#1,446 7 ๅ‰‡็•™่จ€ 2 ๅ€‹ reaction ๅทฒๆŒ‡ๆดพ 0 ไบบ ๅœจ GitHub ๆชข่ฆ–
area:platform-windows area:tools
ไธป่ฆ่ชž่จ€
Shell
ๆ˜Ÿ่™Ÿ
11.2k
ๅˆ†ๆ”ฏ
1.9k
ๅนณๅ‡ๅˆไฝต
14 ๅฐๆ™‚ 16 ๅˆ†้˜
30 ๅคฉๅ…งๅˆไฝต PR
6

ๆ่ฟฐ

### Describe the bug

Image

๐Ÿ› 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 ้‚„ๆฒ’ๆœ‰่ฉ•ไผฐ่ณ‡ๆ–™ใ€‚

ๆŠŠๆ–ฐ issue ๅฏ„ๅˆฐไฝ ็š„้›ปๅญ้ƒตไปถไฟก็ฎฑ

็ฒพ้ธ้ฉๅˆๆ–ฐๆ‰‹ๅƒ่ˆ‡็š„ GitHub issue ๆ‘˜่ฆใ€‚