From 1149138c7bf491d3dfc84fda11697812c7d928e2 Mon Sep 17 00:00:00 2001 From: Suchintan Date: Thu, 12 Feb 2026 16:17:58 -0500 Subject: [PATCH] Fix navigation blocks with engine skyvern-2.0 losing prompt in UI (#4720) Co-authored-by: Suchintan Singh --- .../src/routes/workflows/editor/workflowEditorUtils.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts index 388fb5b9..614d2f5e 100644 --- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts +++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts @@ -594,6 +594,7 @@ function convertToNode( }; } case "navigation": { + const isV2Engine = block.engine === RunEngine.SkyvernV2; return { ...identifiers, ...common, @@ -616,8 +617,11 @@ function convertToNode( engine: block.engine ?? RunEngine.SkyvernV1, includeActionHistoryInVerification: block.include_action_history_in_verification ?? false, - prompt: "", - maxSteps: MAX_STEPS_DEFAULT, + // When engine is SkyvernV2, use navigation_goal as the prompt + prompt: isV2Engine ? block.navigation_goal ?? "" : "", + maxSteps: isV2Engine + ? block.max_steps_per_run ?? MAX_STEPS_DEFAULT + : MAX_STEPS_DEFAULT, }, }; }