diff --git a/hermes_cli/copilot_auth.py b/hermes_cli/copilot_auth.py index e6f63a1557c9..1cfb05fb0fd4 100644 --- a/hermes_cli/copilot_auth.py +++ b/hermes_cli/copilot_auth.py @@ -27,6 +27,8 @@ from pathlib import Path from typing import Optional +from hermes_cli._subprocess_compat import windows_hide_flags + logger = logging.getLogger(__name__) # OAuth device code flow constants (same client ID as opencode/Copilot CLI) @@ -141,6 +143,7 @@ def _try_gh_cli_token() -> Optional[str]: text=True, timeout=5, env=clean_env, + creationflags=windows_hide_flags(), ) except (FileNotFoundError, subprocess.TimeoutExpired) as exc: logger.debug("gh CLI token lookup failed (%s): %s", gh_path, exc)