From a20713d994bd1aaebc494db2d873d04983391c8f Mon Sep 17 00:00:00 2001 From: Suchintan Date: Wed, 11 Feb 2026 16:47:04 -0500 Subject: [PATCH] SKY-7956 Improve login prompt clarity and add invalid credentials handling (#4702) Co-authored-by: Suchintan Singh --- skyvern/forge/sdk/routes/run_blocks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skyvern/forge/sdk/routes/run_blocks.py b/skyvern/forge/sdk/routes/run_blocks.py index 2d3cee3e..71442500 100644 --- a/skyvern/forge/sdk/routes/run_blocks.py +++ b/skyvern/forge/sdk/routes/run_blocks.py @@ -42,7 +42,8 @@ LOG = structlog.get_logger() DEFAULT_LOGIN_PROMPT = """If you're not on the login page, navigate to login page and login using the credentials given. First, take actions on promotional popups or cookie prompts that could prevent taking other action on the web page. If a 2-factor step appears, enter the authentication code. -If you fail to login to find the login page or can't login after several trials, terminate. +If you fail to login or can't find the login page after several trials, terminate. +If the credentials are invalid, expired, or rejected by the website, terminate immediately and take no further actions. If login is completed, you're successful."""