diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx index 147e579f..a86e9a64 100644 --- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx @@ -248,7 +248,9 @@ function Workspace({ const [toDeleteCacheKeyValue, setToDeleteCacheKeyValue] = useState< string | null >(null); - const [isCopilotOpen, setIsCopilotOpen] = useState(false); + const [isCopilotOpen, setIsCopilotOpen] = useState( + () => !initialNodes.some(isWorkflowBlockNode), + ); const [copilotMessageCount, setCopilotMessageCount] = useState(0); const copilotButtonRef = useRef(null); const [