Skip to content

Automate browser based workflows with AI

Disable rerun when v2 task is used (#1657)

Shuchang Zhengb40c8025766e
diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
index 08128e776..c1dd602fb 100644
--- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
+++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx
@@ -126,6 +126,8 @@ function WorkflowRun() {
});
}
+ const isTaskv2Run = workflowRun && workflowRun.observer_task !== null;
+
return (
<div className="space-y-8">
<header className="flex justify-between">
@@ -211,7 +213,7 @@ function WorkflowRun() {
</DialogContent>
</Dialog>
)}
- {workflowRunIsFinalized && (
+ {workflowRunIsFinalized && !isTaskv2Run && (
<Button asChild>
<Link
to={`/workflows/${workflowPermanentId}/run`}