From a1c94ec4b44ae034fa82366117a90a7905d1da7f Mon Sep 17 00:00:00 2001 From: Jonathan Dobson Date: Thu, 25 Sep 2025 16:01:49 -0400 Subject: [PATCH] show block outputs only in debugger, not in editor (#3530) --- .../routes/workflows/editor/nodes/components/NodeTabs.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeTabs.tsx b/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeTabs.tsx index cfd96185..88ca7583 100644 --- a/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeTabs.tsx +++ b/skyvern-frontend/src/routes/workflows/editor/nodes/components/NodeTabs.tsx @@ -13,6 +13,7 @@ import { statusIsRunningOrQueued } from "@/routes/tasks/types"; import { BlockOutputs } from "@/routes/workflows/components/BlockOutputs"; import { useWorkflowRunQuery } from "@/routes/workflows/hooks/useWorkflowRunQuery"; import { useBlockOutputStore } from "@/store/BlockOutputStore"; +import { useDebugStore } from "@/store/useDebugStore"; import { cn } from "@/util/utils"; interface Props { @@ -22,6 +23,7 @@ interface Props { function NodeTabs({ blockLabel }: Props) { const { blockLabel: urlBlockLabel } = useParams(); const blockOutput = useBlockOutputStore((state) => state.outputs[blockLabel]); + const debugStore = useDebugStore(); const [isExpanded, setIsExpanded] = useState(false); const { data: workflowRun } = useWorkflowRunQuery(); const workflowRunIsRunningOrQueued = @@ -37,6 +39,10 @@ function NodeTabs({ blockLabel }: Props) { return null; } + if (!debugStore.isDebugMode) { + return null; + } + return ( <>