Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix: dep-patch group with [server] openai-agents floor unbroken (replaces #10899) (#5896)
Aaron Perezd4ca1e4e7ab9
diff --git a/skyvern-frontend/src/components/FloatingWindow.tsx b/skyvern-frontend/src/components/FloatingWindow.tsxindex accad32ed..697ec21c3 100644--- a/skyvern-frontend/src/components/FloatingWindow.tsx+++ b/skyvern-frontend/src/components/FloatingWindow.tsx@@ -454,7 +454,7 @@ function FloatingWindow({setIsMinimized(true);const defaultLeft = 0;- const parentBottom = parentRef.current?.offsetHeight;+ const parentBottom = parentRef.current?.offsetHeight ?? 0;const defaultTop = parentBottom - Constants.MinHeight - 16;const left = minimizedPosition?.x ?? defaultLeft;const top = minimizedPosition?.y ?? defaultTop;diff --git a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsxindex 181b326f4..1ab3118c9 100644--- a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx+++ b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx@@ -144,7 +144,7 @@ interface WorkflowCopilotChatProps {isOpen?: boolean;onClose?: () => void;onMessageCountChange?: (count: number) => void;- buttonRef?: React.RefObject<HTMLButtonElement>;+ buttonRef?: React.RefObject<HTMLButtonElement | null>;liveBrowserSessionId?: string | null;requiresLiveBrowser?: boolean;isLiveBrowserReady?: boolean;@@ -163,7 +163,7 @@ const OFFSET = 24;const calculateDefaultPosition = (width: number,height: number,- buttonRef?: React.RefObject<HTMLButtonElement>,+ buttonRef?: React.RefObject<HTMLButtonElement | null>,) => {// If button ref is available, align left edge of window with left edge of buttonif (buttonRef?.current) {diff --git a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsxindex 513c7fe78..2798645ef 100644--- a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx@@ -340,7 +340,9 @@ function FlowRenderer({"pre-layout" | "initial-load" | "ready">("pre-layout");const hasCompletedInitialLoad = useRef(false);- const fadeTimerRef = useRef<ReturnType<typeof setTimeout>>();+ const fadeTimerRef = useRef<ReturnType<typeof setTimeout> | undefined>(+ undefined,+ );const flowIsConstrained = debugStore.isDebugMode;// Track if this is the initial load to prevent false "unsaved changes" detectiondiff --git a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsxindex 7f2cf8208..c2870059a 100644--- a/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/panels/WorkflowNodeLibraryPanel.tsx@@ -1,5 +1,6 @@import { ScrollArea, ScrollAreaViewport } from "@/components/ui/scroll-area";import { useWorkflowPanelStore } from "@/store/WorkflowPanelStore";+import * as React from "react";import { useState, useRef, useEffect } from "react";import {Cross2Icon,@@ -17,7 +18,7 @@ const enableCodeBlock =const nodeLibraryItems: Array<{nodeType: NonNullable<WorkflowBlockNode["type"]>;- icon: JSX.Element;+ icon: React.JSX.Element;title: string;description: string;}> = [diff --git a/skyvern-frontend/src/routes/workflows/editor/useAutoPan.ts b/skyvern-frontend/src/routes/workflows/editor/useAutoPan.tsindex 27a72adb1..84dcce5b0 100644--- a/skyvern-frontend/src/routes/workflows/editor/useAutoPan.ts+++ b/skyvern-frontend/src/routes/workflows/editor/useAutoPan.ts@@ -29,7 +29,7 @@ import { AppNode } from "./nodes";* change in the editor*/const useAutoPan = (- editorElementRef: React.RefObject<HTMLDivElement>,+ editorElementRef: React.RefObject<HTMLDivElement | null>,nodes: AppNode[],) => {const { setViewport, getViewport } = useReactFlow();