Skip to content

Copilot CLI subprocess opens console window when SDK auto-starts CLI #305

@markox92

Description

@markox92

When using the Python SDK on Windows in a frozen app, a console window pops up and stays open whenever the SDK auto-starts the Copilot CLI server. This happens because the CLI is spawned via subprocess.Popen(...) without CREATE_NO_WINDOW/STARTUPINFO

Relevant lines:
https://github.com/github/copilot-sdk/blob/main/python/copilot/client.py#L927-L935
https://github.com/github/copilot-sdk/blob/main/python/copilot/client.py#L939-L946

The console window is visible and distracts end users. This is especially noticeable in GUI apps that shouldn’t show any terminal windows.

Could you add an option to suppress the window on Windows? For example:

  • A client option like hide_cli_window: true, or
  • Passing creationflags=subprocess.CREATE_NO_WINDOW / startupinfo when launching the CLI on Windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions