Skip to content

Automate browser based workflows with AI

skipped action should mark as success (#3080)

LawyZhengf2510bf2b70e
diff --git a/skyvern-frontend/src/api/types.ts b/skyvern-frontend/src/api/types.ts
index c2e3a2858..d88ed4f54 100644
--- a/skyvern-frontend/src/api/types.ts
+++ b/skyvern-frontend/src/api/types.ts
@@ -25,6 +25,7 @@ export const Status = {
Queued: "queued",
TimedOut: "timed_out",
Canceled: "canceled",
+ Skipped: "skipped",
} as const;
export type Status = (typeof Status)[keyof typeof Status];
diff --git a/skyvern-frontend/src/routes/tasks/detail/hooks/useActions.ts b/skyvern-frontend/src/routes/tasks/detail/hooks/useActions.ts
index 4137a60d9..22b5f247a 100644
--- a/skyvern-frontend/src/routes/tasks/detail/hooks/useActions.ts
+++ b/skyvern-frontend/src/routes/tasks/detail/hooks/useActions.ts
@@ -118,7 +118,9 @@ function useActions({ id }: Props): {
confidence: action.confidence_float ?? undefined,
input: action.response ?? "",
type: action.action_type,
- success: action.status === Status.Completed,
+ success:
+ action.status === Status.Completed ||
+ action.status === Status.Skipped,
stepId: action.step_id ?? "",
index: action.action_order ?? 0,
};
diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
index db93a08cb..a099b09ce 100644
--- a/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
+++ b/skyvern-frontend/src/routes/workflows/workflowRun/ActionCard.tsx
@@ -13,7 +13,8 @@ type Props = {
};
function ActionCard({ action, onClick, active, index }: Props) {
- const success = action.status === Status.Completed;
+ const success =
+ action.status === Status.Completed || action.status === Status.Skipped;
const refCallback = useCallback((element: HTMLDivElement | null) => {
if (element && active) {