From 21eb4f2d302732c559382efd578eea64360c7ecf Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Wed, 14 Jan 2026 04:25:13 +0530 Subject: [PATCH] Only show Chrome diagnostics when there are issues Silence the diagnostic report when all checks pass to reduce noise. --- crates/g3-cli/src/utils.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/g3-cli/src/utils.rs b/crates/g3-cli/src/utils.rs index 29235bc..6f53c34 100644 --- a/crates/g3-cli/src/utils.rs +++ b/crates/g3-cli/src/utils.rs @@ -113,10 +113,12 @@ pub fn load_config_with_cli_overrides(cli: &Cli) -> Result { config.webdriver.enabled = true; config.webdriver.browser = g3_config::WebDriverBrowser::ChromeHeadless; - // Run Chrome diagnostics on first use + // Run Chrome diagnostics - only show output if there are issues let report = g3_computer_control::run_chrome_diagnostics(config.webdriver.chrome_binary.as_deref()); - println!("{}", report.format_report()); + if !report.all_ok() { + println!("{}", report.format_report()); + } } // Apply safari flag override