Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix(SKY-11397): one live-status source of truth on the Run tab (#6836)
Celal Zamanoğlud2bbba19f1e8
diff --git a/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx b/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsxindex 2043285ec..6d8c0919a 100644--- a/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/StudioTopBar.tsx@@ -107,14 +107,14 @@ function StudioTabs() {urlRunId ? urlRun?.status : latestRun?.status,);+ // Live status lives in the Run view header (one source of truth); the tab keeps+ // only the terminal outcome.const runBadge =- outcome === "running"- ? { label: "live", cls: "bg-studio-accent/20 text-studio-accent-2" }- : outcome === "failed"- ? { label: "failed", cls: "bg-destructive/20 text-destructive" }- : outcome === "success"- ? { label: "passed", cls: "bg-success/20 text-success" }- : null;+ outcome === "failed"+ ? { label: "failed", cls: "bg-destructive/20 text-destructive" }+ : outcome === "success"+ ? { label: "passed", cls: "bg-success/20 text-success" }+ : null;const tabs: Array<{ id: StudioTab; label: string; disabled: boolean }> = [{ id: "editor", label: "Editor", disabled: false },diff --git a/skyvern-frontend/src/routes/workflows/studio/runview/RunView.tsx b/skyvern-frontend/src/routes/workflows/studio/runview/RunView.tsxindex 52a8f3683..037208864 100644--- a/skyvern-frontend/src/routes/workflows/studio/runview/RunView.tsx+++ b/skyvern-frontend/src/routes/workflows/studio/runview/RunView.tsx@@ -352,6 +352,7 @@ export function RunView({ workflowRunId, onFix, onRetry }: RunViewProps) {<div className="min-h-0 overflow-hidden"><WorkflowRunTimelineworkflowRunId={workflowRunId}+ hideLiveBadgeactiveItem={activeItem}activeIteration={activeIteration}onActionItemSelected={(item) => pinFrame(item.action.action_id)}diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsxindex 56c9622e5..2366a08d8 100644--- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx+++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunTimeline.tsx@@ -34,6 +34,8 @@ type Props = {activeIteration?: number | null;// When set, read this run's timeline instead of the URL's (studio shell).workflowRunId?: string;+ // Studio owns live-status in its own header; let it hide this duplicate badge.+ hideLiveBadge?: boolean;onLiveStreamSelected: () => void;onActionItemSelected: (item: ActionItem) => void;onBlockItemSelected: (item: WorkflowRunBlock) => void;@@ -84,6 +86,7 @@ function WorkflowRunTimeline({activeItem,activeIteration = null,workflowRunId,+ hideLiveBadge = false,onLiveStreamSelected,onActionItemSelected,onBlockItemSelected,@@ -187,7 +190,7 @@ function WorkflowRunTimeline({).toLocaleString()}{" "}credits</span>- {workflowRunIsNotFinalized && (+ {workflowRunIsNotFinalized && !hideLiveBadge && (<buttontype="button"onClick={onLiveStreamSelected}