From fabd1a34639b83ca4ce2ad84ff29347ddd3a6c10 Mon Sep 17 00:00:00 2001 From: chrisfu Date: Tue, 31 Mar 2026 23:21:19 -0700 Subject: [PATCH] Fix gcloud auth login output capture swallowing device-code URL gcloud auth login --no-browser was called via _gcloud_plain which uses capture_output=True, silently swallowing the device-code URL that the user needs to complete authentication. Run it directly with no capture. Co-Authored-By: Claude Sonnet 4.6 --- knoe/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knoe/config.py b/knoe/config.py index fbf0b20..648c13c 100644 --- a/knoe/config.py +++ b/knoe/config.py @@ -1595,7 +1595,7 @@ def _run_gcp_tui(stdscr, output_path: str, mode: str, provider: str): curses.endwin() print("\nRunning: gcloud auth login --no-browser\n") - rc, _ = _gcloud_plain("auth", "login", "--no-browser") + rc = subprocess.run(["gcloud", "auth", "login", "--no-browser"]).returncode stdscr = curses.initscr() curses.start_color() curses.use_default_colors()