From 54a09527d2afb193a791932e3325ccd8b1777fb8 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Thu, 4 Dec 2025 00:26:33 -0500 Subject: [PATCH] shu/fix caching with totp identifier or totp url (#4191) --- skyvern/services/script_service.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/skyvern/services/script_service.py b/skyvern/services/script_service.py index 3859ed52..4332344d 100644 --- a/skyvern/services/script_service.py +++ b/skyvern/services/script_service.py @@ -1580,6 +1580,11 @@ async def login( model=model, ) prompt = _render_template_with_label(prompt, cache_key) + if totp_url: + totp_url = _render_template_with_label(totp_url, cache_key) + if totp_identifier: + totp_identifier = _render_template_with_label(totp_identifier, cache_key) + # set the prompt in the RunContext context = skyvern_context.ensure_context() context.prompt = prompt