agent: remove duplicate condition