From 291072446de1c4617d621df2cfd6be36b4c5faf2 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Wed, 3 Jun 2026 15:26:29 -0700 Subject: [PATCH] feat(workflows): enforce node autoApprove by bypassing the CLI approval pause MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The node "Auto-approve requests" toggle was captured but unused. The only human-approval pause reachable from a custom node is the CLI first-run trust-on-first-use gate (review-style nodes run as ephemeral readonly agents with no permission gate), so autoApprove now bypasses that pause — a superset of the CLI-specific cliSkipApproval flag. The inspector explains the effect when the toggle is on. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../app/components/WorkflowNodeEditor.tsx | 5 +++++ packages/engine/src/executor.ts | 21 ++++++++++++------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/packages/dashboard/app/components/WorkflowNodeEditor.tsx b/packages/dashboard/app/components/WorkflowNodeEditor.tsx index 4e4b13ba4c..c9c1cde39a 100644 --- a/packages/dashboard/app/components/WorkflowNodeEditor.tsx +++ b/packages/dashboard/app/components/WorkflowNodeEditor.tsx @@ -527,6 +527,11 @@ function InnerEditor({ /> Auto-approve requests + {Boolean(selectedNode.data.config?.autoApprove) && ( +

+ Runs without pausing for approval — e.g. a CLI command executes on its first run without waiting for your sign-off. +

+ )}