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
This commit is contained in:
Dhanji R. Prasanna
2026-01-11 16:14:50 +05:30
parent 4fb605fe7e
commit 1d884251cb

View File

@@ -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