Skip to content

Automate browser based workflows with AI

Update changelog — Week of June 30, 2026 (#6984)

Shuchang Zhengdd882331516a
diff --git a/docs/changelog.mdx b/docs/changelog.mdx
index f96877459..343b06341 100644
--- a/docs/changelog.mdx
+++ b/docs/changelog.mdx
@@ -13,6 +13,7 @@ keywords:
<div className="cl-page">
<div className="cl-sidebar">
<p className="cl-sidebar-title">TIMELINE</p>
+ <a href="#week-jun-30-2026" className="cl-sidebar-link">Week of Jun 30, 2026</a>
<a href="#week-jun-22-2026" className="cl-sidebar-link">Week of Jun 22, 2026</a>
<a href="#week-jun-15-2026" className="cl-sidebar-link">Week of Jun 15, 2026</a>
<a href="#week-jun-8-2026" className="cl-sidebar-link">Week of Jun 8, 2026</a>
@@ -37,6 +38,29 @@ keywords:
<h1 className="cl-title">Changelog</h1>
<p className="cl-subtitle">New features, improvements, and fixes in Skyvern</p>
+<a id="week-jun-30-2026"></a>
+<Update label="Week of June 30, 2026" description="Workflow Studio UX improvements, faster enrichment, code-block self-heal, extraction accuracy, bug fixes">
+
+## Improvements
+
+- **Block Type Shown in Workflow Studio Header** — The block detail panel in Workflow Studio now displays the block type in the header, making it easier to identify what kind of block you're editing at a glance. ([#6956](https://github.com/Skyvern-AI/skyvern/pull/6956))
+- **Improved Extraction Accuracy for Absent Data** — The agent now better handles cases where requested output is genuinely absent from the page, reducing false positives in extraction results. ([#6957](https://github.com/Skyvern-AI/skyvern/pull/6957))
+- **Data-Only Validation Skips Page Evidence** — Validation steps that check only extracted data no longer capture page screenshots when they aren't needed, reducing unnecessary work during runs. ([#6960](https://github.com/Skyvern-AI/skyvern/pull/6960))
+- **Copilot Block Runs Routed to UI Worker** — Copilot block runs are now dispatched to a dedicated UI worker, keeping the editor responsive during live automation. ([#6962](https://github.com/Skyvern-AI/skyvern/pull/6962))
+- **Clearer Invalid JSON Errors in Workflow Editor** — The workflow editor now surfaces a descriptive error when a parameter contains invalid JSON, making it faster to diagnose and fix configuration mistakes. ([#6963](https://github.com/Skyvern-AI/skyvern/pull/6963))
+- **"Ignore System Prompt" Moved to Advanced Settings** — The "Ignore system prompt" option has been relocated to the advanced settings panel, reducing clutter in the default block configuration view. ([#6964](https://github.com/Skyvern-AI/skyvern/pull/6964))
+- **Empty Extra HTTP Headers Hidden** — Extra HTTP header fields that are empty no longer appear in block configurations, reducing visual noise in the workflow editor. ([#6966](https://github.com/Skyvern-AI/skyvern/pull/6966))
+- **Block Selection Persisted in URL** — The selected block in Workflow Studio is now encoded in the URL, so your selection is preserved on reload and can be shared via link. ([#6969](https://github.com/Skyvern-AI/skyvern/pull/6969))
+- **Code-Block Self-Heal Minimum Retry Floor** — The code-block self-healing loop now enforces a minimum number of repair attempts before giving up, preventing premature failures on recoverable errors. ([#6971](https://github.com/Skyvern-AI/skyvern/pull/6971))
+- **Faster Live-Draft Enrichment** — Workflow recording live-draft enrichment now uses a faster model and a shorter debounce interval, making draft suggestions appear noticeably sooner while recording. ([#6973](https://github.com/Skyvern-AI/skyvern/pull/6973))
+
+## Bug fixes
+
+- Fixed syntax highlighting disappearing when viewing large webhook payloads. ([#6967](https://github.com/Skyvern-AI/skyvern/pull/6967))
+- Fixed LLM blocks not enforcing their configured output schema, which could allow malformed data to propagate to downstream blocks. ([#6965](https://github.com/Skyvern-AI/skyvern/pull/6965))
+
+</Update>
+
<a id="week-jun-22-2026"></a>
<Update label="Week of June 22, 2026" description="Workflow Studio preview, new models, label management, Gmail OTP, Copilot improvements, analytics filters, bug fixes">
diff --git a/fern/docs/changelog.mdx b/fern/docs/changelog.mdx
index f3d080ac7..01027be4b 100644
--- a/fern/docs/changelog.mdx
+++ b/fern/docs/changelog.mdx
@@ -7,6 +7,7 @@ mode: custom
<div className="cl-page">
<div className="cl-sidebar">
<p className="cl-sidebar-title">TIMELINE</p>
+ <a href="#week-of-june-30%2C-2026" className="cl-sidebar-link">Week of Jun 30, 2026</a>
<a href="#week-of-june-22%2C-2026" className="cl-sidebar-link">Week of Jun 22, 2026</a>
<a href="#week-of-june-15%2C-2026" className="cl-sidebar-link">Week of Jun 15, 2026</a>
<a href="#week-of-june-8%2C-2026" className="cl-sidebar-link">Week of Jun 8, 2026</a>
@@ -27,6 +28,28 @@ mode: custom
<h1 className="cl-title">Changelog</h1>
<p className="cl-subtitle">New features, improvements, and fixes in Skyvern</p>
+<Update label="Week of June 30, 2026" description="Workflow Studio UX improvements, faster enrichment, code-block self-heal, extraction accuracy, bug fixes">
+
+## Improvements
+
+- **Block Type Shown in Workflow Studio Header** — The block detail panel in Workflow Studio now displays the block type in the header, making it easier to identify what kind of block you're editing at a glance. ([#6956](https://github.com/Skyvern-AI/skyvern/pull/6956))
+- **Improved Extraction Accuracy for Absent Data** — The agent now better handles cases where requested output is genuinely absent from the page, reducing false positives in extraction results. ([#6957](https://github.com/Skyvern-AI/skyvern/pull/6957))
+- **Data-Only Validation Skips Page Evidence** — Validation steps that check only extracted data no longer capture page screenshots when they aren't needed, reducing unnecessary work during runs. ([#6960](https://github.com/Skyvern-AI/skyvern/pull/6960))
+- **Copilot Block Runs Routed to UI Worker** — Copilot block runs are now dispatched to a dedicated UI worker, keeping the editor responsive during live automation. ([#6962](https://github.com/Skyvern-AI/skyvern/pull/6962))
+- **Clearer Invalid JSON Errors in Workflow Editor** — The workflow editor now surfaces a descriptive error when a parameter contains invalid JSON, making it faster to diagnose and fix configuration mistakes. ([#6963](https://github.com/Skyvern-AI/skyvern/pull/6963))
+- **"Ignore System Prompt" Moved to Advanced Settings** — The "Ignore system prompt" option has been relocated to the advanced settings panel, reducing clutter in the default block configuration view. ([#6964](https://github.com/Skyvern-AI/skyvern/pull/6964))
+- **Empty Extra HTTP Headers Hidden** — Extra HTTP header fields that are empty no longer appear in block configurations, reducing visual noise in the workflow editor. ([#6966](https://github.com/Skyvern-AI/skyvern/pull/6966))
+- **Block Selection Persisted in URL** — The selected block in Workflow Studio is now encoded in the URL, so your selection is preserved on reload and can be shared via link. ([#6969](https://github.com/Skyvern-AI/skyvern/pull/6969))
+- **Code-Block Self-Heal Minimum Retry Floor** — The code-block self-healing loop now enforces a minimum number of repair attempts before giving up, preventing premature failures on recoverable errors. ([#6971](https://github.com/Skyvern-AI/skyvern/pull/6971))
+- **Faster Live-Draft Enrichment** — Workflow recording live-draft enrichment now uses a faster model and a shorter debounce interval, making draft suggestions appear noticeably sooner while recording. ([#6973](https://github.com/Skyvern-AI/skyvern/pull/6973))
+
+## Bug fixes
+
+- Fixed syntax highlighting disappearing when viewing large webhook payloads. ([#6967](https://github.com/Skyvern-AI/skyvern/pull/6967))
+- Fixed LLM blocks not enforcing their configured output schema, which could allow malformed data to propagate to downstream blocks. ([#6965](https://github.com/Skyvern-AI/skyvern/pull/6965))
+
+</Update>
+
<Update label="Week of June 22, 2026" description="Workflow Studio preview, new models, label management, Gmail OTP, Copilot improvements, analytics filters, bug fixes">
## New features
diff --git a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
index 7bd6571eb..6febbb1b2 100644
--- a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
@@ -15,7 +15,6 @@ import { useShouldNotifyWhenClosingTab } from "@/hooks/useShouldNotifyWhenClosin
import { BlockActionContext } from "@/store/BlockActionContext";
import { useDebugStore } from "@/store/useDebugStore";
import { useRecordedBlocksStore } from "@/store/RecordedBlocksStore";
-import { useStudioShellStore } from "@/store/StudioShellStore";
import {
useWorkflowHasChangesStore,
useWorkflowSave,
@@ -450,9 +449,6 @@ function FlowRenderer({
const selectedBlockId = useWorkflowPanelStore(
(state) => state.selectedBlockId,
);
- const setSettingsCollapsed = useStudioShellStore(
- (state) => state.setSettingsCollapsed,
- );
// Escape clears the canvas selection. The listener is mounted
// on the FlowRenderer because that scopes the global keydown to the
@@ -466,19 +462,13 @@ function FlowRenderer({
if (event.key !== "Escape") {
return;
}
- // In the studio shell the settings panel is persistent, so Escape
- // collapses it to the rail rather than deselecting (which would hide it).
- if (embedded) {
- setSettingsCollapsed(true);
- return;
- }
setSelectedBlockId(null);
};
window.addEventListener("keydown", handleKeyDown);
return () => {
window.removeEventListener("keydown", handleKeyDown);
};
- }, [setSelectedBlockId, setSettingsCollapsed, embedded, readOnly]);
+ }, [setSelectedBlockId, readOnly]);
// Programmatic viewport changes (e.g. `fitView`) animate via `setViewport`,
// which fires `onMove`. Without this gate, `constrainPan` would clamp every
@@ -2028,18 +2018,15 @@ function FlowRenderer({
return;
}
setSelectedBlockId(node.id);
- // Studio's embedded editor uses build mode, so a block click reveals
- // its inline editor (the header chevron still collapses it).
- if (embedded) {
- setSettingsCollapsed(false);
- if (isWorkflowBlockNode(appNode)) {
- useNodeCollapseStore
- .getState()
- .expandBlock(
- workflow.workflow_permanent_id ?? "__global__",
- appNode.data.label,
- );
- }
+ // Studio's embedded editor uses build mode, so a block click
+ // reveals its inline editor (the header chevron collapses it).
+ if (embedded && isWorkflowBlockNode(appNode)) {
+ useNodeCollapseStore
+ .getState()
+ .expandBlock(
+ workflow.workflow_permanent_id ?? "__global__",
+ appNode.data.label,
+ );
}
}}
onPaneClick={() => {
diff --git a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
index 8f436facf..a5821ec5b 100644
--- a/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/Workspace.tsx
@@ -333,9 +333,6 @@ function Workspace({
(s) => s.setCopilotCollapsed,
);
const studioSetTab = useStudioShellStore((s) => s.setTab);
- const studioSetSettingsCollapsed = useStudioShellStore(
- (s) => s.setSettingsCollapsed,
- );
// The studio canvas sits right of the Copilot column; offset the fit by the
// column width so the chain centers on the whole page, not just the pane.
const studioCanvasCenterOffset = embedded
@@ -853,7 +850,6 @@ function Workspace({
// payload resolves.
const cacheKeyInitWpidRef = useRef<string | null>(null);
useEffect(() => {
- // Studio defaults the selection to the start node on open (legacy keeps it
// empty), unless the URL asks for a specific block; fires only on workflow
// change, so tab-switch selection persists.
const initialSelectedBlockId = getInitialSelectedBlockId({
@@ -862,11 +858,6 @@ function Workspace({
searchParams,
});
useWorkflowPanelStore.getState().setSelectedBlockId(initialSelectedBlockId);
- // The collapse flag is a module-level store, so it survives an in-session
- // A→B workflow nav; re-collapse here so every workflow opens to the rail.
- if (embedded) {
- studioSetSettingsCollapsed(true);
- }
useShowAllCodeStore.getState().reset();
useSidebarSaveStateStore.getState().reset();
cacheKeyInitWpidRef.current = null;
@@ -1412,11 +1403,6 @@ function Workspace({
});
doLayout(newNodesAfter, [...editedEdges, ...newEdges]);
useWorkflowPanelStore.getState().setSelectedBlockId(id);
- // Adding a block is a deliberate action: expand the studio settings panel
- // to the new block (the library flow doesn't go through onNodeClick).
- if (embedded) {
- studioSetSettingsCollapsed(false);
- }
}
const orderedBlockLabels = getOrderedBlockLabels(workflow);
@@ -1569,9 +1555,9 @@ function Workspace({
className="relative h-full w-full"
style={
{
- // In studio the settings panel is its own grid column (StudioShell), so
- // the Stage already reflows; zero the var so on-canvas overlays don't
- // double-offset. Legacy keeps the overlay's measured width.
+ // Studio has no block-config settings sidebar (settings are inline in
+ // the blocks), so zero the var; the on-canvas sidebar-offset consumers
+ // are suppressed there anyway. Legacy keeps the overlay's measured width.
[BLOCK_SIDEBAR_WIDTH_VAR]: embedded
? "0px"
: `${renderedBlockSidebarWidth}px`,
diff --git a/skyvern-frontend/src/routes/workflows/editor/hooks/useSettingsSidebarLayout.test.tsx b/skyvern-frontend/src/routes/workflows/editor/hooks/useSettingsSidebarLayout.test.tsx
deleted file mode 100644
index 03cc69718..000000000
--- a/skyvern-frontend/src/routes/workflows/editor/hooks/useSettingsSidebarLayout.test.tsx
+++ /dev/null
@@ -1,107 +0,0 @@
-// @vitest-environment jsdom
-
-import { act, renderHook } from "@testing-library/react";
-import { type ReactNode } from "react";
-import { MemoryRouter } from "react-router-dom";
-import { beforeEach, describe, expect, test } from "vitest";
-
-import { useStudioShellStore } from "@/store/StudioShellStore";
-import { useWorkflowPanelStore } from "@/store/WorkflowPanelStore";
-import type { WorkflowVersion } from "@/routes/workflows/hooks/useWorkflowVersionsQuery";
-
-import { useSettingsSidebarLayout } from "./useSettingsSidebarLayout";
-
-function wrapper({ children }: { children: ReactNode }) {
- return (
- <MemoryRouter initialEntries={["/workflows/wpid_abc/edit"]}>
- {children}
- </MemoryRouter>
- );
-}
-
-beforeEach(() => {
- useWorkflowPanelStore.getState().setSelectedBlockId(null);
- useWorkflowPanelStore.getState().setWorkflowPanelState({
- active: false,
- content: "parameters",
- });
- useStudioShellStore.getState().reset();
-});
-
-describe("useSettingsSidebarLayout", () => {
- test("closed when nothing is selected and no library is open", () => {
- const { result } = renderHook(() => useSettingsSidebarLayout(), {
- wrapper,
- });
- expect(result.current).toEqual({
- open: false,
- isLibrary: false,
- nodeSelected: false,
- collapsed: false,
- });
- });
-
- test("a selected block opens the column collapsed (studio starts collapsed)", () => {
- act(() => {
- useWorkflowPanelStore.getState().setSelectedBlockId("block-a");
- });
- const { result } = renderHook(() => useSettingsSidebarLayout(), {
- wrapper,
- });
- expect(result.current.open).toBe(true);
- expect(result.current.nodeSelected).toBe(true);
- expect(result.current.isLibrary).toBe(false);
- expect(result.current.collapsed).toBe(true);
- });
-
- test("expanding the studio settings clears collapsed", () => {
- act(() => {
- useWorkflowPanelStore.getState().setSelectedBlockId("block-a");
- useStudioShellStore.getState().setSettingsCollapsed(false);
- });
- const { result } = renderHook(() => useSettingsSidebarLayout(), {
- wrapper,
- });
- expect(result.current.open).toBe(true);
- expect(result.current.collapsed).toBe(false);
- });
-
- test("the comparison view keeps the column closed even with a block selected", () => {
- act(() => {
- useWorkflowPanelStore.getState().setSelectedBlockId("block-a");
- useWorkflowPanelStore.getState().setWorkflowPanelState({
- active: true,
- content: "parameters",
- data: {
- showComparison: true,
- version1: {} as WorkflowVersion,
- version2: {} as WorkflowVersion,
- },
- });
- });
- const { result } = renderHook(() => useSettingsSidebarLayout(), {
- wrapper,
- });
- expect(result.current.open).toBe(false);
- expect(result.current.nodeSelected).toBe(false);
- expect(result.current.collapsed).toBe(false);
- });
-
- test("the node library opens the column but is never collapsible", () => {
- act(() => {
- useWorkflowPanelStore.getState().setWorkflowPanelState({
- active: true,
- content: "nodeLibrary",
- });
- // ...even while the studio is in its collapsed state.
- useStudioShellStore.getState().setSettingsCollapsed(true);
- });
- const { result } = renderHook(() => useSettingsSidebarLayout(), {
- wrapper,
- });
- expect(result.current.open).toBe(true);
- expect(result.current.isLibrary).toBe(true);
- expect(result.current.nodeSelected).toBe(false);
- expect(result.current.collapsed).toBe(false);
- });
-});
diff --git a/skyvern-frontend/src/routes/workflows/editor/hooks/useSettingsSidebarLayout.ts b/skyvern-frontend/src/routes/workflows/editor/hooks/useSettingsSidebarLayout.ts
deleted file mode 100644
index 22455e6d0..000000000
--- a/skyvern-frontend/src/routes/workflows/editor/hooks/useSettingsSidebarLayout.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import { useWorkflowPanelStore } from "@/store/WorkflowPanelStore";
-import { useStudioShellStore } from "@/store/StudioShellStore";
-
-import { isBlockSidebarOpen } from "../blockSidebar";
-import { useWorkflowEditorMode } from "./useWorkflowEditorMode";
-
-type SettingsSidebarLayout = {
- // The settings surface is visible at all (a block/start node is selected, or
- // the block library drawer is open).
- open: boolean;
- // The library drawer (not collapsible) rather than a block's config form.
- isLibrary: boolean;
- // A block/start node is selected, so the panel can collapse to a rail.
- nodeSelected: boolean;
- // The panel is showing as a collapsed rail (only for a selected node).
- collapsed: boolean;
-};
-
-// Single source of truth for the studio settings sidebar's layout state, shared
-// by StudioShell (which sizes the grid column) and BlockConfigSidebar (which
-// renders the body/rail) so the two can't drift.
-export function useSettingsSidebarLayout(): SettingsSidebarLayout {
- const mode = useWorkflowEditorMode();
- const selectedBlockId = useWorkflowPanelStore((s) => s.selectedBlockId);
- const workflowPanelState = useWorkflowPanelStore((s) => s.workflowPanelState);
- const studioSettingsCollapsed = useStudioShellStore(
- (s) => s.settingsCollapsed,
- );
-
- // The comparison view replaces FlowRenderer (and thus the portaled settings
- // panel) in the Stage, so there'd be no content for the column — keep it
- // closed so it doesn't reserve an empty strip that shrinks the comparison.
- const comparisonActive = Boolean(
- workflowPanelState.data?.showComparison &&
- workflowPanelState.data?.version1 &&
- workflowPanelState.data?.version2,
- );
- const isLibrary =
- workflowPanelState.active && workflowPanelState.content === "nodeLibrary";
- const nodeSelected =
- !comparisonActive &&
- mode !== "build" &&
- selectedBlockId !== null &&
- !isLibrary;
- const open =
- !comparisonActive && isBlockSidebarOpen(mode, selectedBlockId, isLibrary);
- const collapsed = nodeSelected && studioSettingsCollapsed;
-
- return { open, isLibrary, nodeSelected, collapsed };
-}
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.test.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.test.tsx
index f5b0bb49c..3c4336751 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.test.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.test.tsx
@@ -87,7 +87,6 @@ import { useWorkflowPanelStore } from "@/store/WorkflowPanelStore";
import { BLOCK_FORMS, type WorkflowBlockNodeType } from "./BlockConfigForm";
import { BlockConfigSidebar } from "./BlockConfigSidebar";
import { getContainedBlockSidebarWidth } from "../blockSidebar";
-import { StudioShellContext } from "../../studio/StudioShellContext";
// EditableNodeTitle (used by the editable block title) measures truncation
// via ResizeObserver, which jsdom does not implement. Stubbed per-test in
@@ -138,31 +137,14 @@ afterEach(() => {
}
});
-// In studio the embedded sidebar portals its surface into the StudioShell
-// settings column (settingsPortalEl). Provide a real portal target via context
-// so the portaled content lands in the document and `screen` can query it.
+// In studio the embedded editor keeps block settings inline in the blocks, so
+// the sidebar only surfaces the block library there (never a block-config form).
function renderEmbedded(initialPath = "/workflows/wpid_abc/edit") {
- const settingsPortalEl = document.createElement("div");
- const settingsRailPortalEl = document.createElement("div");
- document.body.appendChild(settingsPortalEl);
- document.body.appendChild(settingsRailPortalEl);
- const result = render(
+ return render(
<MemoryRouter initialEntries={[initialPath]}>
- <StudioShellContext.Provider
- value={{
- copilotPortalEl: null,
- settingsPortalEl,
- settingsRailPortalEl,
- setEditorStreamSlot: () => {},
- setBrowserStreamSlot: () => {},
- setRunStreamSlot: () => {},
- }}
- >
- <BlockConfigSidebar embedded />
- </StudioShellContext.Provider>
+ <BlockConfigSidebar embedded />
</MemoryRouter>,
);
- return { ...result, settingsPortalEl, settingsRailPortalEl };
}
describe("BlockConfigSidebar mount stability (SKY-9360)", () => {
@@ -509,120 +491,30 @@ describe("BlockConfigSidebar block type visibility (SKY-11622)", () => {
});
});
-describe("BlockConfigSidebar settings collapse (SKY-11481)", () => {
- test("embedded studio renders the settings panel collapsed to a rail by default", () => {
+describe("BlockConfigSidebar in the studio shell (embedded)", () => {
+ test("renders nothing for a selected block — settings are inline in the blocks", () => {
act(() => {
useWorkflowPanelStore.getState().setSelectedBlockId("start-block");
});
renderEmbedded();
- expect(screen.getByTestId("settings-rail")).toBeDefined();
- expect(useStudioShellStore.getState().settingsCollapsed).toBe(true);
- // The body stays mounted (so the width animation can clip it) but inert.
- expect(screen.getByTestId("block-config-sidebar").className).toContain(
- "pointer-events-none",
- );
- });
-
- test("the rail is collapsible for any block, not just Agent Settings", () => {
- act(() => {
- useWorkflowPanelStore.getState().setSelectedBlockId("block-a");
- });
- renderEmbedded();
-
- const rail = screen.getByTestId("settings-rail");
- expect(rail.textContent).toContain("Alpha");
- expect(screen.getByTestId("block-config-sidebar").className).toContain(
- "pointer-events-none",
- );
- });
-
- test("clicking the rail expands to the full settings panel", () => {
- act(() => {
- useWorkflowPanelStore.getState().setSelectedBlockId("start-block");
- });
- renderEmbedded();
-
- fireEvent.click(screen.getByRole("button", { name: "Show settings" }));
-
- expect(screen.queryByTestId("settings-rail")).toBeNull();
- expect(screen.getByText("Agent Settings")).toBeDefined();
- // Expanded body is interactive again.
- expect(screen.getByTestId("block-config-sidebar").className).not.toContain(
- "pointer-events-none",
- );
+ expect(screen.queryByTestId("block-config-sidebar")).toBeNull();
});
- test("the header chevron collapses the panel back to the rail", () => {
+ test("still renders the block library so blocks can be inserted", () => {
act(() => {
- useStudioShellStore.getState().setSettingsCollapsed(false);
- useWorkflowPanelStore.getState().setSelectedBlockId("block-a");
+ useWorkflowPanelStore.getState().setWorkflowPanelState({
+ active: true,
+ content: "nodeLibrary",
+ });
});
renderEmbedded();
- expect(screen.queryByTestId("settings-rail")).toBeNull();
- expect(
- screen.queryByRole("button", { name: "Close block configuration" }),
- ).toBeNull();
-
- fireEvent.click(screen.getByRole("button", { name: "Collapse settings" }));
-
- expect(screen.getByTestId("settings-rail")).toBeDefined();
- expect(useStudioShellStore.getState().settingsCollapsed).toBe(true);
- // Body stays mounted (clipped under the rail) but inert.
- expect(screen.getByTestId("block-config-sidebar").className).toContain(
- "pointer-events-none",
- );
- });
-
- test("the embedded panel portals its surface into the StudioShell settings column", () => {
- // The panel is now a StudioShell grid column: the shell owns position,
- // insets, and width, so the embedded surface is portaled into the provided
- // settings column rather than self-positioning in the canvas.
- act(() => {
- useWorkflowPanelStore.getState().setSelectedBlockId("start-block");
- });
- const { settingsPortalEl, settingsRailPortalEl } = renderEmbedded();
-
- // Collapsed by default: the rail renders in its own column slot, the body
- // (clipped under it) in the main settings slot.
- expect(
- settingsRailPortalEl.querySelector('[data-testid="settings-rail"]'),
- ).not.toBeNull();
- expect(
- settingsPortalEl.querySelector('[data-testid="block-config-sidebar"]'),
- ).not.toBeNull();
-
- act(() => {
- useStudioShellStore.getState().setSettingsCollapsed(false);
- });
-
- // Expanded: the body stays in the settings slot and the rail is gone.
- expect(
- settingsPortalEl.querySelector('[data-testid="block-config-sidebar"]'),
- ).not.toBeNull();
- expect(
- settingsRailPortalEl.querySelector('[data-testid="settings-rail"]'),
- ).toBeNull();
- });
-
- test("embedded renders nothing when the studio settings column is absent", () => {
- // Without a StudioShell portal target the panel renders nothing rather than
- // falling back to an in-canvas overlay.
- act(() => {
- useWorkflowPanelStore.getState().setSelectedBlockId("block-a");
- });
- render(
- <MemoryRouter initialEntries={["/workflows/wpid_abc/edit"]}>
- <BlockConfigSidebar embedded />
- </MemoryRouter>,
- );
-
- expect(screen.queryByTestId("block-config-sidebar")).toBeNull();
- expect(screen.queryByTestId("settings-rail")).toBeNull();
+ expect(screen.getByText("Block Library")).toBeDefined();
+ expect(screen.getByTestId("block-config-sidebar")).toBeDefined();
});
- test("legacy (non-embedded) editor does not collapse and keeps the close button", () => {
+ test("legacy (non-embedded) editor keeps the block-config panel and close button", () => {
act(() => {
useWorkflowPanelStore.getState().setSelectedBlockId("block-a");
});
@@ -632,7 +524,6 @@ describe("BlockConfigSidebar settings collapse (SKY-11481)", () => {
</MemoryRouter>,
);
- expect(screen.queryByTestId("settings-rail")).toBeNull();
expect(screen.getByTestId("block-config-sidebar")).toBeDefined();
expect(
screen.getByRole("button", { name: "Close block configuration" }),
diff --git a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.tsx b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.tsx
index a7ee4bea9..c53fb097a 100644
--- a/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/panels/BlockConfigSidebar.tsx
@@ -1,14 +1,7 @@
-import {
- ChevronLeftIcon,
- ChevronRightIcon,
- Cross2Icon,
- GearIcon,
- PlusIcon,
-} from "@radix-ui/react-icons";
+import { Cross2Icon, GearIcon, PlusIcon } from "@radix-ui/react-icons";
import { useNodesData, useReactFlow } from "@xyflow/react";
import { Resizable } from "re-resizable";
import { useEffect, useLayoutEffect, useRef, useState } from "react";
-import { createPortal } from "react-dom";
import {
BLOCK_SIDEBAR_WIDTH_MAX,
@@ -17,7 +10,6 @@ import {
} from "@/store/BlockSidebarWidthStore";
import { usePendingCommitsStore } from "@/store/PendingCommitsStore";
import { useSidebarSaveStateStore } from "@/store/SidebarSaveStateStore";
-import { useStudioShellStore } from "@/store/StudioShellStore";
import { useWorkflowPanelStore } from "@/store/WorkflowPanelStore";
import { cn } from "@/util/utils";
@@ -37,8 +29,6 @@ import {
import { BlockConfigForm } from "./BlockConfigForm";
import { useHasInteractedThisSession } from "./useHasInteractedThisSession";
import { WorkflowNodeLibraryPanel } from "./WorkflowNodeLibraryPanel";
-import { STUDIO_COPILOT_RAIL_WIDTH } from "../../studio/constants";
-import { useStudioShellContext } from "../../studio/StudioShellContext";
import type { AddNodeProps } from "../Workspace";
// React Flow node type → backend WorkflowBlockType. The two diverge in
@@ -91,9 +81,6 @@ function getBlockTypeFromNode(node: AppNode): WorkflowBlockType | null {
const FOOTER_TICK_INTERVAL_MS = 10_000;
-// Reuse the Copilot rail width so the two studio rails can't drift apart.
-const SETTINGS_RAIL_WIDTH = STUDIO_COPILOT_RAIL_WIDTH;
-
type SidebarIdentity = {
label: string;
isStart: boolean;
@@ -132,39 +119,6 @@ function SidebarIdentityIcon({
);
}
-// Collapsed settings rail content (slim right-edge controls), mirroring the
-// Copilot rail; the shared shell wrapper owns the card chrome + width animation.
-function SettingsRail({
- identity,
- onExpand,
-}: Readonly<{ identity: SidebarIdentity; onExpand: () => void }>) {
- // Self-contained bordered card filling the rail slot (mirrors CopilotRail) so
- // its left edge reads as a panel edge; fades in like the Copilot rail.
- return (
- <div
- data-testid="settings-rail"
- className="flex h-full w-full flex-col items-center gap-3 rounded-xl border border-border bg-slate-elevation2 py-3 shadow-xl duration-300 animate-in fade-in"
- >
- <button
- type="button"
- onClick={onExpand}
- title="Show settings"
- aria-label="Show settings"
- className="rounded p-1 text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
- >
- <ChevronLeftIcon className="h-4 w-4" />
- </button>
- <SidebarIdentityIcon identity={identity} />
- <span
- className="mt-1 max-h-[60%] overflow-hidden text-ellipsis text-xs font-medium tracking-wide text-muted-foreground"
- style={{ writingMode: "vertical-rl" }}
- >
- {identity.label}
- </span>
- </div>
- );
-}
-
function measureElementWidth(element: HTMLElement): number | null {
const boundingWidth = element.getBoundingClientRect().width;
if (boundingWidth > 0) {
@@ -279,14 +233,10 @@ function BlockConfigSidebarBody({
selectedBlockId,
identity,
onClose,
- onCollapse,
}: Readonly<{
selectedBlockId: string;
identity: SidebarIdentity;
onClose: () => void;
- // When set (studio shell), the header's close affordance collapses the panel
- // to a rail instead of deselecting the block.
- onCollapse?: () => void;
}>) {
return (
<>
@@ -318,26 +268,14 @@ function BlockConfigSidebarBody({
<SubLabel />
</div>
</div>
- {onCollapse ? (
- <button
- type="button"
- onClick={onCollapse}
- aria-label="Collapse settings"
- title="Collapse settings"
- className="rounded p-1 text-slate-400 transition-colors hover:bg-slate-700 hover:text-slate-100"
- >
- <ChevronRightIcon className="h-4 w-4" />
- </button>
- ) : (
- <button
- type="button"
- onClick={onClose}
- aria-label="Close block configuration"
- className="rounded p-1 text-slate-400 transition-colors hover:bg-slate-700 hover:text-slate-100"
- >
- <Cross2Icon className="h-4 w-4" />
- </button>
- )}
+ <button
+ type="button"
+ onClick={onClose}
+ aria-label="Close block configuration"
+ className="rounded p-1 text-slate-400 transition-colors hover:bg-slate-700 hover:text-slate-100"
+ >
+ <Cross2Icon className="h-4 w-4" />
+ </button>
</header>
<div className="flex-1 overflow-y-auto px-5 py-4">
<BlockConfigForm blockId={selectedBlockId} />
@@ -420,13 +358,6 @@ function BlockConfigSidebar({
(state) => state.closeWorkflowPanel,
);
const flushPendingCommit = usePendingCommitsStore((state) => state.flush);
- const studioSettingsCollapsed = useStudioShellStore(
- (state) => state.settingsCollapsed,
- );
- const setStudioSettingsCollapsed = useStudioShellStore(
- (state) => state.setSettingsCollapsed,
- );
- const { settingsPortalEl, settingsRailPortalEl } = useStudioShellContext();
const containedWidth = getContainedBlockSidebarWidth(
width,
editorShellMetrics.width,
@@ -462,20 +393,14 @@ function BlockConfigSidebar({
const sidebarVisible =
showLibrary || (mode !== "build" && selectedBlockId !== null);
- // In the studio shell every settings panel (agent settings + each block) is
- // collapsible to a rail; the block-library drawer is not.
const selectedNode =
!showLibrary && selectedBlockId !== null
? (reactFlowInstance.getNode(selectedBlockId) ?? null)
: null;
- const isCollapsibleSettings = embedded && selectedNode !== null;
- const settingsCollapsed = isCollapsibleSettings && studioSettingsCollapsed;
const selectedIdentity = getSidebarIdentity(selectedNode);
useLayoutEffect(() => {
- // Legacy overlay only: studio sizes its column in StudioShell, so the
- // contained-width measurement and rendered-width var are unused there.
- if (!sidebarVisible || embedded) {
+ if (!sidebarVisible) {
setEditorShellMetrics({
gutterPx: getBlockSidebarGutterPx(null),
width: null,
@@ -518,27 +443,21 @@ function BlockConfigSidebar({
return () => {
resizeObserver.disconnect();
};
- // Re-measure on collapse toggle: the shell width changes, so the contained
- // width bounds need refreshing.
- }, [sidebarVisible, settingsCollapsed, embedded]);
+ }, [sidebarVisible]);
useLayoutEffect(() => {
- if (!sidebarVisible || embedded) {
+ if (!sidebarVisible) {
return;
}
- setRenderedWidth(settingsCollapsed ? SETTINGS_RAIL_WIDTH : containedWidth);
- }, [
- settingsCollapsed,
- containedWidth,
- setRenderedWidth,
- sidebarVisible,
- embedded,
- ]);
-
- // In build mode the block-config form is unavailable, but the node library
- // must still render so users can insert blocks from the canvas.
- if (mode === "build" && !showLibrary) {
+ setRenderedWidth(containedWidth);
+ }, [containedWidth, setRenderedWidth, sidebarVisible]);
+
+ // The block-config form only renders when the sidebar shows it directly: build
+ // mode gives each block/start node its own inline editor, and the studio shell
+ // keeps settings inline in the blocks. In both, the sidebar only hosts the
+ // block library (so users can still insert blocks from the canvas).
+ if ((mode === "build" || embedded) && !showLibrary) {
return null;
}
@@ -546,61 +465,6 @@ function BlockConfigSidebar({
return null;
}
- // Studio: the panel is a StudioShell grid column (the shell owns the width,
- // collapse rail, and resize), so we portal the surface into that column and
- // fill it. The body stays mounted but inert while collapsed so the shell's
- // width animation can clip it without it reflowing.
- if (embedded) {
- // The expanded panel and the collapsed rail portal into separate StudioShell
- // slots (the shell owns their sizing/position), mirroring the Copilot's
- // fixed chat + separate rail overlay. The body stays mounted but inert while
- // collapsed so the shell's width animation can clip it without reflow.
- const bodyCard = (
- <div className="relative h-full w-full overflow-hidden rounded-xl border border-border bg-slate-elevation2 shadow-xl">
- <aside
- data-testid="block-config-sidebar"
- className={cn(
- "flex h-full w-full flex-col",
- settingsCollapsed && "pointer-events-none",
- )}
- >
- {showLibrary ? (
- <BlockLibrarySidebarBody
- onAddNode={(props) => onAddNode?.(props)}
- onClose={closeWorkflowPanel}
- />
- ) : selectedBlockId !== null ? (
- <BlockConfigSidebarBody
- selectedBlockId={selectedBlockId}
- identity={selectedIdentity}
- onClose={() => setSelectedBlockId(null)}
- onCollapse={
- isCollapsibleSettings
- ? () => setStudioSettingsCollapsed(true)
- : undefined
- }
- />
- ) : null}
- </aside>
- </div>
- );
-
- return (
- <>
- {settingsPortalEl ? createPortal(bodyCard, settingsPortalEl) : null}
- {settingsCollapsed && settingsRailPortalEl
- ? createPortal(
- <SettingsRail
- identity={selectedIdentity}
- onExpand={() => setStudioSettingsCollapsed(false)}
- />,
- settingsRailPortalEl,
- )
- : null}
- </>
- );
- }
-
return (
<Resizable
ref={resizableRef}
diff --git a/skyvern-frontend/src/routes/workflows/studio/StudioShell.tsx b/skyvern-frontend/src/routes/workflows/studio/StudioShell.tsx
index 3fe1f9e3f..4d02bd29a 100644
--- a/skyvern-frontend/src/routes/workflows/studio/StudioShell.tsx
+++ b/skyvern-frontend/src/routes/workflows/studio/StudioShell.tsx
@@ -1,24 +1,10 @@
-import {
- useCallback,
- useEffect,
- useLayoutEffect,
- useMemo,
- useRef,
- useState,
-} from "react";
+import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
import { createPortal } from "react-dom";
import { useSearchParams } from "react-router-dom";
-import {
- BLOCK_SIDEBAR_WIDTH_MAX,
- BLOCK_SIDEBAR_WIDTH_MIN,
- useBlockSidebarWidthStore,
-} from "@/store/BlockSidebarWidthStore";
import { useStudioShellStore } from "@/store/StudioShellStore";
import { cn } from "@/util/utils";
-import { useSettingsSidebarLayout } from "../editor/hooks/useSettingsSidebarLayout";
-
import { BrowserTab } from "./BrowserTab";
import { CopilotRail } from "./CopilotRail";
import { EditorTab, type StudioWorkspaceProps } from "./EditorTab";
@@ -38,16 +24,6 @@ import { StudioShellContext } from "./StudioShellContext";
import { StudioTopBar } from "./StudioTopBar";
import { StudioWorkflowPanels } from "./StudioWorkflowPanels";
-// Keyboard arrow-key resize step for the settings separator (px).
-const SETTINGS_RESIZE_STEP = 24;
-
-function clampSettingsWidth(next: number): number {
- return Math.min(
- BLOCK_SIDEBAR_WIDTH_MAX,
- Math.max(BLOCK_SIDEBAR_WIDTH_MIN, Math.round(next)),
- );
-}
-
/**
* Spine + Stage shell: a persistent Copilot column beside a Stage that swaps the
* Editor and Run tabs. The Copilot is portaled in from the embedded Workspace.
@@ -61,11 +37,6 @@ export function StudioShell(props: StudioWorkspaceProps) {
const [copilotPortalEl, setCopilotPortalEl] = useState<HTMLElement | null>(
null,
);
- const [settingsPortalEl, setSettingsPortalEl] = useState<HTMLElement | null>(
- null,
- );
- const [settingsRailPortalEl, setSettingsRailPortalEl] =
- useState<HTMLElement | null>(null);
// The live browser stream is mounted once into this detached host and
// re-parented into the active surface, so it never remounts on tab switch.
@@ -116,13 +87,11 @@ export function StudioShell(props: StudioWorkspaceProps) {
const shellContextValue = useMemo(
() => ({
copilotPortalEl,
- settingsPortalEl,
- settingsRailPortalEl,
setEditorStreamSlot,
setBrowserStreamSlot,
setRunStreamSlot,
}),
- [copilotPortalEl, settingsPortalEl, settingsRailPortalEl],
+ [copilotPortalEl],
);
// Pick the initial tab from the deep link ONCE per mount; must not re-fire on
@@ -143,87 +112,6 @@ export function StudioShell(props: StudioWorkspaceProps) {
? STUDIO_COPILOT_RAIL_WIDTH
: STUDIO_COPILOT_WIDTH;
- // Settings sidebar as a third grid column (mirrors the Copilot): the panel is
- // portaled in from FlowRenderer, but its column width lives here so opening,
- // collapsing, and resizing it reflow the Stage instead of overlaying it.
- const { open: settingsOpen, collapsed: settingsCollapsed } =
- useSettingsSidebarLayout();
- const committedSettingsWidth = useBlockSidebarWidthStore((s) => s.width);
- const setBlockSidebarWidth = useBlockSidebarWidthStore((s) => s.setWidth);
- const [settingsDragWidth, setSettingsDragWidth] = useState<number | null>(
- null,
- );
- const isResizingSettings = settingsDragWidth !== null;
- const expandedSettingsWidth = settingsDragWidth ?? committedSettingsWidth;
- // The settings panel lives in the (CSS-hidden but still mounted) Editor tab,
- // so only reserve its column there — otherwise it'd float over Browser/Run.
- const settingsColumnActive = settingsOpen && tab === "editor";
- const settingsColumnWidth = !settingsColumnActive
- ? 0
- : settingsCollapsed
- ? STUDIO_COPILOT_RAIL_WIDTH
- : expandedSettingsWidth;
- // The body is interactive only on the Editor tab while expanded, the rail only
- // while collapsed there. Mark the other (still-mounted, clipped) subtree inert
- // so keyboard/screen-reader users can't reach off-screen controls.
- const settingsBodyInert = !(settingsColumnActive && !settingsCollapsed);
- const settingsRailInert = !(settingsColumnActive && settingsCollapsed);
-
- // Teardown for an in-progress drag, invoked on drop AND on unmount, so the
- // window listeners + body cursor lock never leak if the shell unmounts mid-drag.
- const settingsDragTeardownRef = useRef<(() => void) | null>(null);
- useEffect(() => () => settingsDragTeardownRef.current?.(), []);
-
- const handleSettingsResizePointerDown = useCallback(
- (event: React.PointerEvent<HTMLDivElement>) => {
- event.preventDefault();
- const startX = event.clientX;
- const startWidth = committedSettingsWidth;
- // Dragging left (toward the Stage) widens the right-docked panel.
- const widthAt = (clientX: number) =>
- clampSettingsWidth(startWidth + startX - clientX);
- const previousCursor = document.body.style.cursor;
- const previousUserSelect = document.body.style.userSelect;
- document.body.style.cursor = "col-resize";
- document.body.style.userSelect = "none";
- const handleMove = (moveEvent: PointerEvent) => {
- setSettingsDragWidth(widthAt(moveEvent.clientX));
- };
- function handleUp(upEvent?: PointerEvent) {
- window.removeEventListener("pointermove", handleMove);
- window.removeEventListener("pointerup", handleUp);
- document.body.style.cursor = previousCursor;
- document.body.style.userSelect = previousUserSelect;
- settingsDragTeardownRef.current = null;
- if (upEvent) {
- setBlockSidebarWidth(widthAt(upEvent.clientX));
- }
- setSettingsDragWidth(null);
- }
- settingsDragTeardownRef.current = () => handleUp();
- window.addEventListener("pointermove", handleMove);
- window.addEventListener("pointerup", handleUp);
- },
- [committedSettingsWidth, setBlockSidebarWidth],
- );
-
- const handleSettingsResizeKeyDown = useCallback(
- (event: React.KeyboardEvent<HTMLDivElement>) => {
- if (event.key === "ArrowLeft") {
- event.preventDefault();
- setBlockSidebarWidth(
- clampSettingsWidth(committedSettingsWidth + SETTINGS_RESIZE_STEP),
- );
- } else if (event.key === "ArrowRight") {
- event.preventDefault();
- setBlockSidebarWidth(
- clampSettingsWidth(committedSettingsWidth - SETTINGS_RESIZE_STEP),
- );
- }
- },
- [committedSettingsWidth, setBlockSidebarWidth],
- );
-
return (
<StudioShellContext.Provider value={shellContextValue}>
<div className="flex h-full w-full flex-col">
@@ -231,16 +119,13 @@ export function StudioShell(props: StudioWorkspaceProps) {
<div
className="grid min-h-0 flex-1"
style={{
- gridTemplateColumns: `${copilotWidth}px minmax(0, 1fr) ${settingsColumnWidth}px`,
+ gridTemplateColumns: `${copilotWidth}px minmax(0, 1fr)`,
gridTemplateRows: "minmax(0, 1fr)",
- // Dropped mid-drag so a settings resize tracks the handle 1:1.
- transition: isResizingSettings
- ? "none"
- : `grid-template-columns ${STUDIO_COPILOT_TRANSITION_MS}ms ${
- copilotCollapsed || settingsCollapsed
- ? STUDIO_COPILOT_COLLAPSE_EASE
- : STUDIO_COPILOT_TRANSITION_EASE
- }`,
+ transition: `grid-template-columns ${STUDIO_COPILOT_TRANSITION_MS}ms ${
+ copilotCollapsed
+ ? STUDIO_COPILOT_COLLAPSE_EASE
+ : STUDIO_COPILOT_TRANSITION_EASE
+ }`,
}}
>
{/* Copilot portal target. Kept mounted (parked offscreen) when
@@ -303,55 +188,6 @@ export function StudioShell(props: StudioWorkspaceProps) {
</div>
<StudioWorkflowPanels />
</div>
- {/* Settings portal target. The agent/block settings panel is portaled
- in here from FlowRenderer (it needs React Flow context), so it lives
- as a grid column that reflows the Stage like the Copilot does. The
- inner target is fixed at the expanded width and right-pinned so the
- open/collapse clip never reflows the panel body. */}
- <div className="relative h-full min-w-0 overflow-hidden">
- {/* Expanded panel: fixed width, right-pinned, clipped by the column.
- pr-3 mirrors the Copilot's outer inset (gap to the window edge). */}
- <div
- ref={setSettingsPortalEl}
- style={{ width: expandedSettingsWidth }}
- className="absolute inset-y-0 right-0 py-3 pr-3"
- // inert removes the clipped body from a11y tree + tab order when
- // it's hidden (off the Editor tab, or collapsed under the rail).
- {...(settingsBodyInert ? { inert: "" } : {})}
- />
- {/* Collapsed rail: a self-contained card overlay (mirrors CopilotRail).
- Kept mounted so its portal target is stable; only interactive while
- collapsed so it never blocks the expanded panel underneath. */}
- <div
- style={{ width: STUDIO_COPILOT_RAIL_WIDTH }}
- className="pointer-events-none absolute inset-y-0 right-0 py-3 pr-3"
- >
- <div
- ref={setSettingsRailPortalEl}
- className={cn(
- "h-full w-full",
- settingsRailInert
- ? "pointer-events-none"
- : "pointer-events-auto",
- )}
- {...(settingsRailInert ? { inert: "" } : {})}
- />
- </div>
- {settingsColumnActive && !settingsCollapsed ? (
- <div
- role="separator"
- aria-orientation="vertical"
- aria-label="Resize settings"
- aria-valuenow={expandedSettingsWidth}
- aria-valuemin={BLOCK_SIDEBAR_WIDTH_MIN}
- aria-valuemax={BLOCK_SIDEBAR_WIDTH_MAX}
- tabIndex={0}
- onPointerDown={handleSettingsResizePointerDown}
- onKeyDown={handleSettingsResizeKeyDown}
- className="absolute inset-y-0 left-0 z-40 w-3 cursor-col-resize focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
- />
- ) : null}
- </div>
</div>
<div
ref={setStreamHolderEl}
diff --git a/skyvern-frontend/src/routes/workflows/studio/StudioShellContext.ts b/skyvern-frontend/src/routes/workflows/studio/StudioShellContext.ts
index 94e5278ff..d77fbd4f4 100644
--- a/skyvern-frontend/src/routes/workflows/studio/StudioShellContext.ts
+++ b/skyvern-frontend/src/routes/workflows/studio/StudioShellContext.ts
@@ -4,14 +4,6 @@ type StudioShellContextValue = {
// Left-column target Workspace portals the docked Copilot into; null when
// collapsed or when Workspace isn't embedded in the studio shell.
copilotPortalEl: HTMLElement | null;
- // Right-column target FlowRenderer portals the agent/block settings panel
- // into, so it lives as a grid column (sizing the Stage) instead of an overlay;
- // null when Workspace isn't embedded in the studio shell.
- settingsPortalEl: HTMLElement | null;
- // Separate target for the collapsed settings rail, so it can be a
- // self-contained card overlay (mirroring the Copilot rail) rather than a clip
- // of the expanded panel.
- settingsRailPortalEl: HTMLElement | null;
// Tabs register their stream container so the shell can re-parent the single
// persistent stream node into the active surface without remounting it.
setEditorStreamSlot: (el: HTMLElement | null) => void;
@@ -23,8 +15,6 @@ type StudioShellContextValue = {
export const StudioShellContext = createContext<StudioShellContextValue>({
copilotPortalEl: null,
- settingsPortalEl: null,
- settingsRailPortalEl: null,
setEditorStreamSlot: () => {},
setBrowserStreamSlot: () => {},
setRunStreamSlot: () => {},
diff --git a/skyvern-frontend/src/store/StudioShellStore.ts b/skyvern-frontend/src/store/StudioShellStore.ts
index d78a522cc..bf846dd1e 100644
--- a/skyvern-frontend/src/store/StudioShellStore.ts
+++ b/skyvern-frontend/src/store/StudioShellStore.ts
@@ -6,12 +6,10 @@ export type StudioTab = "editor" | "browser" | "run";
type StudioShellState = {
tab: StudioTab;
copilotCollapsed: boolean;
- settingsCollapsed: boolean;
pipMinimized: boolean;
setTab: (tab: StudioTab) => void;
setCopilotCollapsed: (collapsed: boolean) => void;
toggleCopilot: () => void;
- setSettingsCollapsed: (collapsed: boolean) => void;
setPipMinimized: (minimized: boolean) => void;
togglePip: () => void;
reset: () => void;
@@ -20,7 +18,6 @@ type StudioShellState = {
const DEFAULTS = {
tab: "editor" as StudioTab,
copilotCollapsed: false,
- settingsCollapsed: true,
pipMinimized: false,
};
@@ -34,7 +31,6 @@ export const useStudioShellStore = create<StudioShellState>()(
setCopilotCollapsed: (copilotCollapsed) => set({ copilotCollapsed }),
toggleCopilot: () =>
set((state) => ({ copilotCollapsed: !state.copilotCollapsed })),
- setSettingsCollapsed: (settingsCollapsed) => set({ settingsCollapsed }),
setPipMinimized: (pipMinimized) => set({ pipMinimized }),
togglePip: () => set((state) => ({ pipMinimized: !state.pipMinimized })),
reset: () => set(DEFAULTS),
@@ -43,9 +39,7 @@ export const useStudioShellStore = create<StudioShellState>()(
name: STUDIO_SHELL_STORAGE_KEY,
storage: createJSONStorage(() => localStorage),
// `tab` is intentionally not persisted: the Run tab is gated on hasRun,
- // so each session starts on the editor. `settingsCollapsed` is also not
- // persisted: the settings panel must start collapsed on every open, and
- // clicking a block auto-expands it within the session.
+ // so each session starts on the editor.
partialize: (state) => ({
copilotCollapsed: state.copilotCollapsed,
pipMinimized: state.pipMinimized,