Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
feat(SKY-9328): forward live debug session id into copilot chat (frontend) (#5711)
Andrew Neilson64658f0536a1
diff --git a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsxindex e3d6ab5cc..7ff936ea3 100644--- a/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx+++ b/skyvern-frontend/src/routes/workflows/copilot/WorkflowCopilotChat.tsx@@ -121,6 +121,7 @@ interface WorkflowCopilotChatProps {onClose?: () => void;onMessageCountChange?: (count: number) => void;buttonRef?: React.RefObject<HTMLButtonElement>;+ liveBrowserSessionId?: string | null;}const DEFAULT_WINDOW_WIDTH = 600;@@ -172,6 +173,7 @@ export function WorkflowCopilotChat({onClose,onMessageCountChange,buttonRef,+ liveBrowserSessionId,}: WorkflowCopilotChatProps = {}) {const [messages, setMessages] = useState<ChatMessage[]>([]);const [proposedWorkflow, setProposedWorkflow] =@@ -693,6 +695,7 @@ export function WorkflowCopilotChat({workflow_permanent_id: workflowPermanentId,workflow_copilot_chat_id: workflowCopilotChatId,workflow_run_id: workflowRunId,+ browser_session_id: liveBrowserSessionId ?? null,message: messageContent,workflow_yaml: workflowYaml,} as WorkflowCopilotChatRequest,diff --git a/skyvern-frontend/src/routes/workflows/copilot/workflowCopilotTypes.ts b/skyvern-frontend/src/routes/workflows/copilot/workflowCopilotTypes.tsindex 8f0b77af3..8655d6093 100644--- a/skyvern-frontend/src/routes/workflows/copilot/workflowCopilotTypes.ts+++ b/skyvern-frontend/src/routes/workflows/copilot/workflowCopilotTypes.ts@@ -28,6 +28,7 @@ export interface WorkflowCopilotChatRequest {workflow_id: string;workflow_copilot_chat_id?: string | null;workflow_run_id?: string | null;+ browser_session_id?: string | null;message: string;workflow_yaml: string;}diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsxindex b8cd54241..dea85db40 100644--- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx+++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx@@ -2011,6 +2011,7 @@ function Workspace({onClose={() => setIsCopilotOpen(false)}onMessageCountChange={setCopilotMessageCount}buttonRef={copilotButtonRef}+ liveBrowserSessionId={activeDebugSession?.browser_session_id ?? null}onReviewWorkflow={async (pendingWorkflow, clearPending) => {const saveData = workflowChangesStore.getSaveData?.();if (!saveData) return;