From f3ff27a3ee0d1d387a4b47425154cfd1ef10b785 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Thu, 4 Jun 2026 12:10:09 -0700 Subject: [PATCH] [eric] browser: on deep stall, nudge a strategic re-plan, not just a selector switch --- backend/apps/agents/browser/browser_loop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/apps/agents/browser/browser_loop.py b/backend/apps/agents/browser/browser_loop.py index 9d482bde..85a61d40 100644 --- a/backend/apps/agents/browser/browser_loop.py +++ b/backend/apps/agents/browser/browser_loop.py @@ -144,7 +144,10 @@ def stagnation_nudge(streak: int) -> str: base = _STAGNATION_NUDGE.format(streak=streak) if streak >= _STAGNATION_MAX: base += ( - " If nothing here works, call RequestHumanIntervention instead of " + " Switching selectors hasn't worked, so the PLAN itself is likely " + "wrong: step back and revise your overall approach (a different page, " + "route, or entry point), not just the selector. If even a fresh plan " + "can't make progress, call RequestHumanIntervention instead of " "continuing to fail." ) return base