Skip to content

Automate browser based workflows with AI

Workflow Copilot: show copilot button for screenshot browser (#4423)

Stanislav Novosad9410bfe6f379
diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
index 1776fd27e..c9362809c 100644
--- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
@@ -1534,9 +1534,18 @@ function Workspace({
{activeDebugSession &&
!activeDebugSession.vnc_streaming_supported && (
<div className="skyvern-screenshot-browser flex h-full w-[calc(100%_-_6rem)] flex-1 flex-col items-center justify-center">
- <div className="aspect-video w-full">
- <WorkflowRunStream alwaysShowStream={true} />
+ <div className="flex w-full flex-1 items-center justify-center">
+ <div className="aspect-video w-full">
+ <WorkflowRunStream alwaysShowStream={true} />
+ </div>
</div>
+ <footer className="flex h-[2rem] w-full items-center justify-start gap-4">
+ <WorkflowCopilotButton
+ ref={copilotButtonRef}
+ messageCount={copilotMessageCount}
+ onClick={() => setIsCopilotOpen((prev) => !prev)}
+ />
+ </footer>
</div>
)}