fix input value bug for script run (#3362)

This commit is contained in:
Shuchang Zheng
2025-09-04 14:22:44 -07:00
committed by GitHub
parent 9413958f4b
commit 960b680efc

View File

@@ -380,9 +380,6 @@ class SkyvernPage:
# format the text with the actual value of the parameter if it's a secret when running a workflow
context = skyvern_context.current()
value = value or ""
if context and context.workflow_run_id:
value = await _get_actual_value_of_parameter_if_secret(context.workflow_run_id, value)
if ai_infer and intention:
try:
prompt = context.prompt if context else None
@@ -404,6 +401,9 @@ class SkyvernPage:
except Exception:
LOG.exception(f"Failed to adapt value for input text action on xpath={xpath}, value={value}")
if context and context.workflow_run_id:
value = await _get_actual_value_of_parameter_if_secret(context.workflow_run_id, value)
locator = self.page.locator(f"xpath={xpath}")
await handler_utils.input_sequentially(locator, value, timeout=timeout)