Files
crewAI/lib
Lucas Gomide 74dc962220 fix: emit FlowFailedEvent for deferred conversational sessions
`_emit_flow_failed` returned early whenever `defer_trace_finalization`
was on, mirroring the success path where the terminal event is owed to a
later `finalize_session_traces()`. A failed turn never reaches that call,
so the session's `flow_started` was left open and tracing closed the root
span as orphaned. The event is now emitted for deferred sessions too,
clearing the stashed started-event id so a later finalization does not
emit a second terminal event, while batch finalization stays with
whoever owns the session.
2026-07-29 15:00:33 -03:00
..
2026-07-28 14:59:36 +00:00