Loading
Show "Generation canceled" when a Plan session is canceled
What does this MR do and why?
Canceling a Plan session showed "Generation failed" with a Try again action, because the backend reported a stopped workplan/v1 flow as FAILED.
- Backend: add a
CANCELEDvalue toWorkItemAgentPlanGenerationStatus;Workflow#progress_statusreturns:canceledfor stopped runs. - Frontend: the workplan widget shows "Generation canceled" with the same styling as a canceled session, and offers the default Generate split dropdown instead of Try again.
Implements the requirements agreed with @nickbrandt and @fredericcaplette in the issue.
Closes #631021 (closed)
How to set up and validate locally
- Enable the
duo_workplan_async_flowfeature flag. - Open an issue, click Generate in the Workplan widget, then cancel the session.
- The widget shows "Generation canceled" and the Generate split dropdown.