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