Files
agent-framework/python/packages
T
Victor Dibia d889fa6f87 Python: Title: DevUI Fix WorkflowFailedEvent error extraction (#2706)
* Title: Fix WorkflowFailedEvent error extraction to use details instead of error Body:
Summary
Fixed WorkflowFailedEvent mapping to extract error message from details.message instead of non-existent error attribute
Added support for including details.extra context in error messages when present
Problem
The WorkflowFailedEvent handler in _mapper.py was reading event.error, but WorkflowFailedEvent uses a details attribute (of type WorkflowErrorDetails), not error. This caused all workflow failures to display "Unknown error" in the UI instead of the actual error message.
Fix
Updated the handler to match the pattern already used by ExecutorFailedEvent:
Read from event.details instead of event.error
Extract details.message for the error text
Include details.extra context when available

* improve error handling consistency
d889fa6f87 ยท 2025-12-08 21:44:32 +00:00
History
..
2025-12-04 22:08:47 +00:00
2025-12-04 22:08:47 +00:00
2025-12-04 22:08:47 +00:00
2025-12-04 22:08:47 +00:00
2025-12-04 22:08:47 +00:00