Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix workflow run dead state after diagnostics back nav (#4776)
Suchintanfd8c33e0afa3
diff --git a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsxindex 25db0eaf4..492075721 100644--- a/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx+++ b/skyvern-frontend/src/routes/tasks/detail/TaskDetails.tsx@@ -70,7 +70,9 @@ function TaskDetails() {const { data: workflowRun, isLoading: workflowRunIsLoading } =useQuery<WorkflowRunStatusApiResponse>({- queryKey: ["workflowRun", task?.workflow_run_id],+ // Keep this cache separate from workflow-run pages, which store+ // a richer payload under ["workflowRun", workflowRunId].+ queryKey: ["taskWorkflowRun", task?.workflow_run_id],queryFn: async () => {const client = await getClient(credentialGetter);return client@@ -110,6 +112,9 @@ function TaskDetails() {queryClient.invalidateQueries({queryKey: ["workflowRun", task.workflow_run_id],});+ queryClient.invalidateQueries({+ queryKey: ["taskWorkflowRun", task.workflow_run_id],+ });queryClient.invalidateQueries({queryKey: ["workflowRun",diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsxindex ff3e6f320..18e7d86ad 100644--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunStream.tsx@@ -78,6 +78,9 @@ function WorkflowRunStream(props?: Props) {queryClient.invalidateQueries({queryKey: ["workflowRun", workflowRunId],});+ queryClient.invalidateQueries({+ queryKey: ["taskWorkflowRun", workflowRunId],+ });queryClient.invalidateQueries({queryKey: ["workflowTasks", workflowRunId],});