Skip to content

Repeated 'unknown option --no-warnings' errors in output #1399

@bradygaster

Description

@bradygaster

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:

  1. Be passed to the correct target (e.g., NODE_OPTIONS=--no-warnings for Node.js), or
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions