From 5d202c06a6c4b4c161c065b5debd3e1dbcc22609 Mon Sep 17 00:00:00 2001 From: leeguooooo Date: Thu, 11 Jun 2026 17:06:35 +0900 Subject: [PATCH] fix(connect): force-install targets the Web Store extension id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit agent-browser-stealth is now published (id knfcmbamhjmaonkfnjhldjedeobeafmk). The .mobileconfig force-install pulls from the Web Store update server, which serves the extension under its STORE id — so the forcelist must use STORE_EXTENSION_ID, not the local Load-unpacked id. (The native-messaging host already allows both ids.) --- cli/src/connect.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cli/src/connect.rs b/cli/src/connect.rs index 298ac62..499c83d 100644 --- a/cli/src/connect.rs +++ b/cli/src/connect.rs @@ -235,10 +235,12 @@ fn install_force_install_profile(no_open: bool) -> Result { } /// The `.mobileconfig` payload: a user-scope Chrome policy that force-installs -/// the extension by id from our hosted update manifest. User scope installs -/// without admin — just a one-time approval click. +/// the extension from the Chrome Web Store. User scope installs without admin — +/// just a one-time approval click. Must use the STORE id (the Web Store update +/// server serves the published extension under the id it assigned, not the local +/// Load-unpacked id). fn force_install_mobileconfig() -> String { - let forcelist = format!("{EXTENSION_ID};{UPDATE_URL}"); + let forcelist = format!("{STORE_EXTENSION_ID};{UPDATE_URL}"); format!( r#"