mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-09-24 20:00:30 +00:00
A hook raising `HookAborted` states a decision, but the model-call seams flattened it into a boolean and the caller re-raised a generic `ValueError`, so the agent retried the same abort up to `max_retry_limit` times and the reason never reached the failure event. `_invoke_before_llm_call_hooks` and `_setup_before_llm_call_hooks` now let the abort propagate carrying its reason, and `_check_execution_error` re-raises it right after closing the attempt's scope, the way it already treats `litellm` errors. A denial that aborts through this path now fails on the first attempt, with its own message on the span.