store the masked value for secret input actions in caching (ai=fallback mode) (#4377)

This commit is contained in:
Shuchang Zheng
2026-01-01 12:07:03 -08:00
committed by GitHub
parent aef38fd8e2
commit 12539d27a2

View File

@@ -408,6 +408,7 @@ class SkyvernPage(Page):
# format the text with the actual value of the parameter if it's a secret when running a workflow
if ai == "fallback":
error_to_raise = None
original_value = value
if selector:
try:
value = await self.get_actual_value(
@@ -417,7 +418,7 @@ class SkyvernPage(Page):
)
locator = self.page.locator(selector)
await handler_utils.input_sequentially(locator, value, timeout=timeout)
return value
return original_value
except Exception as e:
error_to_raise = e
selector = None
@@ -435,7 +436,7 @@ class SkyvernPage(Page):
if error_to_raise:
raise error_to_raise
else:
return value
return original_value
elif ai == "proactive" and intention:
return await self._ai.ai_input_text(
selector=selector,