Merge branch 'main' into bb/gui

This commit is contained in:
emozilla
2026-05-20 16:01:41 -04:00
72 changed files with 2726 additions and 742 deletions
+8 -8
View File
@@ -6690,17 +6690,17 @@ def _failure_messages(url: str, port: int, system: str) -> list[str]:
command = manual_chrome_debug_command(port, system)
hint = (
["Start Chrome with remote debugging, then retry /browser connect:", command]
["Start a Chromium-family browser with remote debugging, then retry /browser connect:", command]
if command
else [
"No Chrome/Chromium executable was found in this environment.",
f"Install one or start Chrome with --remote-debugging-port={port}, then retry /browser connect.",
"No supported Chromium-family browser executable was found in this environment.",
f"Install one or start a Chromium-family browser with --remote-debugging-port={port}, then retry /browser connect.",
]
)
return [
f"Chrome is not reachable at {url}.",
f"Browser CDP is not reachable at {url}.",
*hint,
"Browser not connected — start Chrome with remote debugging and retry /browser connect",
"Browser not connected — start a Chromium-family browser with remote debugging and retry /browser connect",
]
@@ -6786,7 +6786,7 @@ def _browser_connect(rid, params: dict) -> dict:
from hermes_cli.browser_connect import try_launch_chrome_debug
announce(
"Chrome isn't running with remote debugging — attempting to launch..."
"Chromium-family browser isn't running with remote debugging — attempting to launch..."
)
if try_launch_chrome_debug(port, system):
@@ -6797,7 +6797,7 @@ def _browser_connect(rid, params: dict) -> dict:
break
if ok:
announce(f"Chrome launched and listening on port {port}")
announce(f"Chromium-family browser launched and listening on port {port}")
else:
for line in _failure_messages(url, port, system)[1:]:
announce(line, level="error")
@@ -6807,7 +6807,7 @@ def _browser_connect(rid, params: dict) -> dict:
elif not ok:
return _err(rid, 5031, f"could not reach browser CDP at {url}")
elif _is_default_local_cdp(parsed):
announce(f"Chrome is already listening on port {port}")
announce(f"Chromium-family browser is already listening on port {port}")
normalized = _normalize_cdp_url(parsed)