Problem
During normal Copilot CLI agent sessions, the following error appears repeatedly in the terminal output:
error: unknown option '--no-warnings'
Try 'copilot --help' for more information.
error: unknown option '--no-warnings'
Try 'copilot --help' for more information.
error: unknown option '--no-warnings'
Try 'copilot --help' for more information.
error: unknown option '--no-warnings'
These appear unprompted — the user is not passing --no-warnings directly. Something internal to the CLI or its agent/task spawning infrastructure is passing this flag and it's not being recognized.
Expected Behavior
No error output. If --no-warnings is being passed internally (e.g., to suppress Node.js warnings), it should either:
- Be passed to the correct target (e.g.,
NODE_OPTIONS=--no-warnings for Node.js), or
- Be handled silently if the flag isn't supported
Environment
- OS: Windows 11
- Copilot CLI version: 0.0.407-1
- Occurs during agent task spawning (background mode with
task tool)
- Appears multiple times per session, seemingly once per sub-agent spawn
Problem
During normal Copilot CLI agent sessions, the following error appears repeatedly in the terminal output:
These appear unprompted — the user is not passing
--no-warningsdirectly. Something internal to the CLI or its agent/task spawning infrastructure is passing this flag and it's not being recognized.Expected Behavior
No error output. If
--no-warningsis being passed internally (e.g., to suppress Node.js warnings), it should either:NODE_OPTIONS=--no-warningsfor Node.js), orEnvironment
tasktool)