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