Files
crewAI/lib
Lucas Gomide c08c027a1d fix: stop retrying a hook abort and keep its reason
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.
2026-08-14 18:28:01 -03:00
..