From a79f2f81ae07f14580ab68532b9ae9b0a344957b Mon Sep 17 00:00:00 2001 From: cynthialong0-0 <82900738+cynthialong0-0@users.noreply.github.com> Date: Tue, 31 Mar 2026 10:07:58 -0700 Subject: [PATCH] Fix(browser): terminate immediately for "browser is already running" error (#24233) Co-authored-by: Gaurav <39389231+gsquared94@users.noreply.github.com> --- packages/core/src/agents/browser/browserAgentDefinition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/agents/browser/browserAgentDefinition.ts b/packages/core/src/agents/browser/browserAgentDefinition.ts index e33a69a0c2..47077d825e 100644 --- a/packages/core/src/agents/browser/browserAgentDefinition.ts +++ b/packages/core/src/agents/browser/browserAgentDefinition.ts @@ -109,7 +109,7 @@ Many web apps (Google Sheets/Docs, Notion, Figma, etc.) use custom rendering rat TERMINAL FAILURES — STOP IMMEDIATELY: Some errors are unrecoverable and retrying will never help. When you see ANY of these, call complete_task immediately with success=false and include the EXACT error message (including any remediation steps it contains) in your summary: -- "Could not connect to Chrome" or "Failed to connect to Chrome" or "Timed out connecting to Chrome" — Include the full error message with its remediation steps in your summary verbatim. Do NOT paraphrase or omit instructions. +- "Could not connect to Chrome" or "Failed to connect to Chrome" or "Timed out connecting to Chrome" or "The browser is already running" — Include the full error message with its remediation steps in your summary verbatim. Do NOT paraphrase or omit instructions. - "Browser closed" or "Target closed" or "Session closed" — The browser process has terminated. Include the error and tell the user to try again. - "Domain not allowed:" — The target domain is blocked by the allowedDomains security policy. Do NOT retry with a different URL or try to find the content on an allowed domain. - "net::ERR_" network errors on the SAME URL after 2 retries — the site is unreachable. Report the URL and error.