From 21d591ee65b73d05021c8a7fd2ab8ffe5403ecdd Mon Sep 17 00:00:00 2001 From: leeguooooo Date: Mon, 1 Jun 2026 14:39:03 +0900 Subject: [PATCH] fix(stealth): apply stealth on the --launch path (FullLaunch JS patches + UA strip) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit handle_launch's fresh-launch path (the path `--launch open ` takes) never called apply_stealth_to_browser — only the launch FLAGS were applied (e.g. --disable-blink-features=AutomationControlled, which is why navigator.webdriver was already false). As a result the 32 JS fingerprint patches and the Emulation.setUserAgentOverride HeadlessChrome→Chrome UA strip NEVER ran on a launched browser: navigator.userAgent kept the HeadlessChrome marker (a longstanding bug — identical on the prior prebuilt binary). Add the apply_stealth_to_browser call after launch (the auto_launch path already had it; only the explicit-launch path was missing it). Verified, FullLaunch headless: - navigator.webdriver === false, navigator.userAgent => Chrome/ (no Headless) - new tabs and the initial page both clean - bot.sannysoft.com: 0 failed / 31 passed --- cli/src/native/actions.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/src/native/actions.rs b/cli/src/native/actions.rs index f1fbc2a..14c2bac 100644 --- a/cli/src/native/actions.rs +++ b/cli/src/native/actions.rs @@ -2318,6 +2318,11 @@ async fn handle_launch(cmd: &Value, state: &mut DaemonState) -> Result