fix: make WorkflowAgent maxRetries control model-call attempts (#18873)