Skip to content

Automate browser based workflows with AI

Remove browser stream transport badge (#8562)

Cindy Li65993298697e
diff --git a/docs/cloud/building-agents/build-an-agent.mdx b/docs/cloud/building-agents/build-an-agent.mdx
index 6f4829552..a94703da0 100644
--- a/docs/cloud/building-agents/build-an-agent.mdx
+++ b/docs/cloud/building-agents/build-an-agent.mdx
@@ -246,7 +246,7 @@ Five blocks, three categories, zero code. You can now re-run this agent anytime,
Hover over the **+** button on any edge (the connecting line between blocks) to reveal the menu. Select **Add Block** to open the block library, a searchable list of all available block types. Click a block to insert it at that position.
-The menu also offers **Record Browser** (record actions in a live browser to generate blocks) and **Upload SOP** (upload a PDF procedure to auto-generate an agent).
+The menu also offers **Record task** (record actions in a live browser to generate blocks) and **Upload SOP** (upload a PDF procedure to auto-generate an agent).
When you create a blank agent, hover over the **+** on the start edge to add your first block.
diff --git a/skyvern-frontend/src/routes/workflows/editor/WorkflowAddMenu.tsx b/skyvern-frontend/src/routes/workflows/editor/WorkflowAddMenu.tsx
index 0c68d2021..d29cdb36c 100644
--- a/skyvern-frontend/src/routes/workflows/editor/WorkflowAddMenu.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/WorkflowAddMenu.tsx
@@ -51,7 +51,7 @@ function WorkflowAddMenu({
},
];
- // Show Record Browser whenever a browser session exists (ready or still
+ // Show Record task whenever a browser session exists (ready or still
// connecting). Disable it until the browser is actually ready so users
// can see the action will be available without it popping in mid-load.
if (settingsStore.isUsingABrowser || settingsStore.isLoadingABrowser) {
@@ -59,7 +59,7 @@ function WorkflowAddMenu({
id: "2",
icon: <SquareIcon className={buttonSize ? "h-3 w-3" : undefined} />,
enabled: settingsStore.isUsingABrowser && !recordingStore.isRecording,
- text: "Record Browser",
+ text: "Record task",
onClick: () => {
onRecord();
},
diff --git a/skyvern-frontend/src/routes/workflows/editor/__tests__/WorkflowAddMenu.test.tsx b/skyvern-frontend/src/routes/workflows/editor/__tests__/WorkflowAddMenu.test.tsx
index df5b6fe0c..43e79734c 100644
--- a/skyvern-frontend/src/routes/workflows/editor/__tests__/WorkflowAddMenu.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/__tests__/WorkflowAddMenu.test.tsx
@@ -69,11 +69,11 @@ function lastItems(): RadialMenuItem[] {
return (last?.[0]?.items as RadialMenuItem[]) ?? [];
}
-function recordBrowserItem(items: RadialMenuItem[]) {
- return items.find((i) => i.text === "Record Browser");
+function recordTaskItem(items: RadialMenuItem[]) {
+ return items.find((i) => i.text === "Record task");
}
-describe("WorkflowAddMenu — Record Browser item visibility/enabled state", () => {
+describe("WorkflowAddMenu — Record task item visibility/enabled state", () => {
beforeEach(() => {
radialMenuMock.mockClear();
});
@@ -84,46 +84,46 @@ describe("WorkflowAddMenu — Record Browser item visibility/enabled state", ()
cleanup();
});
- it("does NOT show the Record Browser item when no session is using or loading (CORR-1 regression guard)", () => {
+ it("does NOT show the Record task item when no session is using or loading (CORR-1 regression guard)", () => {
useSettingsStore.getState().setIsUsingABrowser(false);
useSettingsStore.getState().setIsLoadingABrowser(false);
renderInDebugMode();
- expect(recordBrowserItem(lastItems())).toBeUndefined();
+ expect(recordTaskItem(lastItems())).toBeUndefined();
});
- it("shows the Record Browser item as DISABLED while a session is loading", () => {
+ it("shows the Record task item as DISABLED while a session is loading", () => {
useSettingsStore.getState().setIsUsingABrowser(false);
useSettingsStore.getState().setIsLoadingABrowser(true);
renderInDebugMode();
- const item = recordBrowserItem(lastItems());
+ const item = recordTaskItem(lastItems());
expect(item).toBeDefined();
expect(item?.enabled).toBe(false);
});
- it("shows the Record Browser item as ENABLED once the browser is ready and not recording", () => {
+ it("shows the Record task item as ENABLED once the browser is ready and not recording", () => {
useSettingsStore.getState().setIsUsingABrowser(true);
useSettingsStore.getState().setIsLoadingABrowser(false);
useRecordingStore.setState({ isRecording: false });
renderInDebugMode();
- const item = recordBrowserItem(lastItems());
+ const item = recordTaskItem(lastItems());
expect(item).toBeDefined();
expect(item?.enabled).toBe(true);
});
- it("disables the Record Browser item while recording is in progress, even when isUsingABrowser is true", () => {
+ it("disables the Record task item while recording is in progress, even when isUsingABrowser is true", () => {
useSettingsStore.getState().setIsUsingABrowser(true);
useSettingsStore.getState().setIsLoadingABrowser(false);
useRecordingStore.setState({ isRecording: true });
renderInDebugMode();
- const item = recordBrowserItem(lastItems());
+ const item = recordTaskItem(lastItems());
expect(item).toBeDefined();
expect(item?.enabled).toBe(false);
});
@@ -153,7 +153,7 @@ describe("WorkflowAddMenu — menu visibility gate", () => {
expect(getByTestId("radial-menu")).toBeDefined();
const items = lastItems();
expect(items.find((i) => i.text === "Upload SOP")).toBeDefined();
- expect(recordBrowserItem(items)).toBeDefined();
+ expect(recordTaskItem(items)).toBeDefined();
});
it("hides the menu (renders only children) when neither debug nor studio block-runs are active", () => {
diff --git a/skyvern-frontend/src/routes/workflows/editor/recording/RecordingPanel.test.tsx b/skyvern-frontend/src/routes/workflows/editor/recording/RecordingPanel.test.tsx
index 9b437bffc..bf3a6cd80 100644
--- a/skyvern-frontend/src/routes/workflows/editor/recording/RecordingPanel.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/recording/RecordingPanel.test.tsx
@@ -119,6 +119,12 @@ describe("RecordingPanel", () => {
cleanup();
});
+ it("uses task language while recording", () => {
+ render(<RecordingPanel browserSessionId="pbs_123" />);
+
+ expect(screen.getByText("Recording task")).toBeTruthy();
+ });
+
it("keeps Done disabled and never calls process_recording while the browser session id has not resolved", () => {
render(<RecordingPanel browserSessionId={null} />);
diff --git a/skyvern-frontend/src/routes/workflows/editor/recording/RecordingPanel.tsx b/skyvern-frontend/src/routes/workflows/editor/recording/RecordingPanel.tsx
index 8574d72d4..0907b856e 100644
--- a/skyvern-frontend/src/routes/workflows/editor/recording/RecordingPanel.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/recording/RecordingPanel.tsx
@@ -530,7 +530,7 @@ function RecordingPanel({ browserSessionId }: Props) {
? "Finishing recording"
: manualCapturePaused
? "Recording paused"
- : "Recording browser";
+ : "Recording task";
return (
<div className="flex h-full w-full flex-col overflow-hidden rounded-xl border bg-slate-elevation2">
@@ -564,7 +564,7 @@ function RecordingPanel({ browserSessionId }: Props) {
<>
Capture is paused.
<br />
- Resume to continue recording browser actions.
+ Resume to continue recording the task.
</>
) : (
<>
diff --git a/skyvern-frontend/src/routes/workflows/studio/BrowserPaneHeader.tsx b/skyvern-frontend/src/routes/workflows/studio/BrowserPaneHeader.tsx
index 53eebb53f..1295d194f 100644
--- a/skyvern-frontend/src/routes/workflows/studio/BrowserPaneHeader.tsx
+++ b/skyvern-frontend/src/routes/workflows/studio/BrowserPaneHeader.tsx
@@ -25,9 +25,7 @@ import {
DialogTrigger,
} from "@/components/ui/dialog";
import { toast } from "@/components/ui/use-toast";
-import { useBrowserStreamingMode } from "@/hooks/useRuntimeConfig";
import { useCredentialGetter } from "@/hooks/useCredentialGetter";
-import { StreamModeBadge } from "@/routes/streaming/StreamDiagnostics";
import { useRecordingLauncherStore } from "@/store/useRecordingLauncherStore";
import { useRecordingStore } from "@/store/useRecordingStore";
import { useStudioBrowserStore } from "@/store/useStudioBrowserStore";
@@ -50,7 +48,6 @@ const FINISHED_RUN_BROWSER_LABEL =
export function BrowserPaneViewPills() {
const compact = useStudioPaneCompact();
- const { browserStreamingMode } = useBrowserStreamingMode();
const { view, setView, visuals, inspectingRun } = useBrowserPaneView();
const hasRecording = visuals.recordingUrls.length > 0;
// Sitting beside the inspected run's replay pills, a pulsing "Live" reads as
@@ -60,11 +57,6 @@ export function BrowserPaneViewPills() {
return (
<>
- {/* Stream-transport diagnostics are a local-dev aid; deployed builds
- keep the header clean. */}
- {compact || !import.meta.env.DEV ? null : (
- <StreamModeBadge mode={browserStreamingMode} className="shrink-0" />
- )}
<div
role="group"
aria-label="Browser view"
@@ -228,20 +220,23 @@ export function BrowserPaneActions() {
const tooltip = debugHidden
? blockedTitle
: startRecordingAtEnd
- ? "Record browser interactions"
+ ? "Complete the task in the browser. Skyvern captures the browser view and your clicks, typing, and navigation, then turns them into workflow steps."
: "Recording is available when the editor is ready";
return (
- <ControlTooltip content={tooltip} blocked={disabled}>
+ <ControlTooltip
+ content={<span className="block max-w-[260px]">{tooltip}</span>}
+ blocked={disabled}
+ >
<Button
variant="ghost"
size="sm"
className="h-7 shrink-0 gap-1.5 px-1.5 text-red-500"
- aria-label="Record browser"
+ aria-label="Record task"
disabled={disabled}
onClick={() => startRecordingAtEnd?.()}
>
<span className="h-2 w-2 rounded-full bg-red-500" />
- {compact ? null : "Record"}
+ {compact ? null : "Record task"}
</Button>
</ControlTooltip>
);
diff --git a/skyvern-frontend/src/routes/workflows/studio/BrowserTab.test.tsx b/skyvern-frontend/src/routes/workflows/studio/BrowserTab.test.tsx
index 6edf56c55..520323c0f 100644
--- a/skyvern-frontend/src/routes/workflows/studio/BrowserTab.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/studio/BrowserTab.test.tsx
@@ -625,7 +625,11 @@ describe("BrowserTab view machine", () => {
});
renderBrowserPane(STUDIO_PATH);
- fireEvent.click(screen.getByRole("button", { name: "Record browser" }));
+ const recordTaskButton = screen.getByRole("button", {
+ name: "Record task",
+ });
+ expect(recordTaskButton.textContent).toContain("Record task");
+ fireEvent.click(recordTaskButton);
expect(startRecording).toHaveBeenCalledOnce();
});
@@ -722,7 +726,7 @@ describe("BrowserTab pills and selection sync", () => {
expect(screen.getByTestId("run-live-stream")).toBeTruthy();
for (const name of [
- "Record browser",
+ "Record task",
"Reconnect browser stream",
"Open browser in new tab",
"Turn off browser",
@@ -803,18 +807,8 @@ describe("BrowserTab pills and selection sync", () => {
});
});
-describe("stream-mode badge dev gating", () => {
- afterEach(() => {
- vi.unstubAllEnvs();
- });
-
- it("shows the transport badge in dev builds (vitest runs as dev)", () => {
- renderBrowserPane(STUDIO_PATH);
- expect(screen.queryByTestId("stream-mode-badge")).not.toBeNull();
- });
-
- it("hides the transport badge outside dev builds", () => {
- vi.stubEnv("DEV", false);
+describe("stream-mode badge", () => {
+ it("does not show the transport badge in the browser pane", () => {
renderBrowserPane(STUDIO_PATH);
expect(screen.queryByTestId("stream-mode-badge")).toBeNull();
});