diff --git a/skyvern-frontend/src/routes/workflows/debugger/DebuggerRunOutput.tsx b/skyvern-frontend/src/routes/workflows/debugger/DebuggerRunOutput.tsx index 22ad4721..29548262 100644 --- a/skyvern-frontend/src/routes/workflows/debugger/DebuggerRunOutput.tsx +++ b/skyvern-frontend/src/routes/workflows/debugger/DebuggerRunOutput.tsx @@ -12,6 +12,7 @@ import { useWorkflowRunTimelineQuery } from "../hooks/useWorkflowRunTimelineQuer import { Status } from "@/api/types"; import { AutoResizingTextarea } from "@/components/AutoResizingTextarea/AutoResizingTextarea"; import { isTaskVariantBlock } from "../types/workflowTypes"; +import { statusIsAFailureType } from "@/routes/tasks/types"; function DebuggerRunOutput() { const { data: workflowRunTimeline, isLoading: workflowRunTimelineIsLoading } = @@ -49,6 +50,12 @@ function DebuggerRunOutput() { isTaskVariantBlock(activeBlock) && activeBlock.status === Status.Completed; + const showFailureReason = + activeBlock && + activeBlock.status !== null && + (statusIsAFailureType({ status: activeBlock.status }) || + activeBlock.status === Status.Canceled); + const outputs = workflowRun?.outputs; const fileUrls = workflowRun?.downloaded_file_urls ?? []; const observerOutput = workflowRun?.task_v2?.output; @@ -72,41 +79,36 @@ function DebuggerRunOutput() {