From 1d884251cbe3d4ed74b59d8b89af2ebdc0dc34d6 Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Sun, 11 Jan 2026 16:14:50 +0530 Subject: [PATCH] refactor(cli): remove duplicate agent mode check in run() The same if-let block checking for agent mode was duplicated, causing dead code on the second check. Removed the duplicate. Agent: fowler --- crates/g3-cli/src/lib.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/crates/g3-cli/src/lib.rs b/crates/g3-cli/src/lib.rs index 5eadf0d..841c05a 100644 --- a/crates/g3-cli/src/lib.rs +++ b/crates/g3-cli/src/lib.rs @@ -444,21 +444,6 @@ pub async fn run() -> Result<()> { .await; } - // Check if agent mode is enabled - if let Some(agent_name) = &cli.agent { - return run_agent_mode( - agent_name, - cli.workspace.clone(), - cli.config.as_deref(), - cli.quiet, - cli.new_session, - cli.task.clone(), - cli.chrome_headless, - cli.safari, - ) - .await; - } - // Only initialize logging if not in retro mode if !cli.machine { // Initialize logging with filtering