Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96ee2f9758 | ||
|
|
0a3d2a91a6 |
Generated
+1
-1
@@ -45,7 +45,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "agent-browser-stealth"
|
name = "agent-browser-stealth"
|
||||||
version = "0.27.0-fork.40"
|
version = "0.27.0-fork.41"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes-gcm",
|
"aes-gcm",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "agent-browser-stealth"
|
name = "agent-browser-stealth"
|
||||||
version = "0.27.0-fork.40"
|
version = "0.27.0-fork.41"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Fast browser automation CLI for AI agents"
|
description = "Fast browser automation CLI for AI agents"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
|
|||||||
@@ -790,8 +790,14 @@ pub async fn auto_connect_cdp() -> Result<String, String> {
|
|||||||
// the extension is set up we must NEVER fall through to the raw :9222 path
|
// the extension is set up we must NEVER fall through to the raw :9222 path
|
||||||
// below: that pops Chrome 136+'s "Allow remote debugging?" dialog, the exact
|
// below: that pops Chrome 136+'s "Allow remote debugging?" dialog, the exact
|
||||||
// thing the extension exists to avoid.
|
// thing the extension exists to avoid.
|
||||||
|
// ~15s of retries (500ms apart) when the extension is installed: long enough
|
||||||
|
// for the MV3 service worker to wake and reconnect on its own (onStartup
|
||||||
|
// after a Chrome restart, or the keepalive alarm) so the relay self-heals
|
||||||
|
// with NO user action. The loop re-checks the relay file every iteration, so
|
||||||
|
// a recovery mid-wait is picked up immediately — the full window is only ever
|
||||||
|
// spent when the extension is genuinely down.
|
||||||
let host_installed = crate::connect::host_installed();
|
let host_installed = crate::connect::host_installed();
|
||||||
let relay_attempts = if host_installed { 10 } else { 1 };
|
let relay_attempts = if host_installed { 30 } else { 1 };
|
||||||
for attempt in 0..relay_attempts {
|
for attempt in 0..relay_attempts {
|
||||||
if let Some(relay) = crate::connect::relay_url() {
|
if let Some(relay) = crate::connect::relay_url() {
|
||||||
// The relay is a local CDP-over-WS endpoint we connect to like Chrome.
|
// The relay is a local CDP-over-WS endpoint we connect to like Chrome.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "agent-browser-stealth",
|
"name": "agent-browser-stealth",
|
||||||
"version": "0.27.0-fork.40",
|
"version": "0.27.0-fork.41",
|
||||||
"description": "Browser automation CLI for AI agents — stealth fork with anti-detection",
|
"description": "Browser automation CLI for AI agents — stealth fork with anti-detection",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"packageManager": "pnpm@11.1.3",
|
"packageManager": "pnpm@11.1.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user