Skip to content

Automate browser based workflows with AI

fix(SKY-9616): fall back to workflow API response for workflowPermanentId on /runs/ route (#5870)

LawyZheng2ca1820973af
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
index d017c9653..095b0df79 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
@@ -78,7 +78,8 @@ function WorkflowRun() {
const status = (error as AxiosError | undefined)?.response?.status;
const workflow = workflowRun?.workflow;
- const workflowPermanentId = workflowPermanentIdParam;
+ const workflowPermanentId =
+ workflowPermanentIdParam ?? workflow?.workflow_permanent_id;
const cacheKey = workflow?.cache_key ?? "";
const isFinalized = workflowRun ? statusIsFinalized(workflowRun) : null;
const isWorkflowDeleted = Boolean(workflow?.deleted_at);