Fix --acd flag not being passed to agent mode

The --acd flag was being checked AFTER the agent mode early return,
so it was never applied when running with --agent.

Fix: Pass acd_enabled parameter to run_agent_mode() and call
agent.set_acd_enabled(true) when the flag is set.
This commit is contained in:
Dhanji R. Prasanna
2026-01-20 14:12:40 +05:30
parent 1ec01bb4e3
commit ecea49d328
2 changed files with 7 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ pub async fn run() -> Result<()> {
cli.chat,
cli.include_prompt.clone(),
cli.no_auto_memory,
cli.acd,
)
.await;
}