Files
crewAI/lib
Lucas Gomide 171189e370 fix: return the retried result instead of finalizing it twice
A retry reenters `execute_task`, whose own `_finalize_task_execution`
already emitted `AgentExecutionCompletedEvent`, and the outer frame then
finalized the same result again. The duplicate used to be absorbed by the
`agent_execution_started` scope that a failed attempt left open, so
closing every attempt exposed it: the extra completed event popped
`task_started`, and the task and crew ends paired with the wrong scopes.
2026-08-14 16:57:49 -03:00
..