Merge origin/develop and integrate browser isolation
This commit is contained in:
parent
50589232d6
commit
ebba5d04a4
13 changed files with 812 additions and 251 deletions
|
|
@ -173,6 +173,12 @@ def load_cli_config() -> Dict[str, Any]:
|
|||
"browser": {
|
||||
"inactivity_timeout": 120, # Auto-cleanup inactive browser sessions after 2 min
|
||||
"record_sessions": False, # Auto-record browser sessions as WebM videos
|
||||
"browser_use_isolation_mode": "shared",
|
||||
"browser_use_runtime_image": "hermes-browser-runtime:latest",
|
||||
"browser_use_runtime_network": "hermes-net",
|
||||
"browser_use_runtime_ttl_seconds": 900,
|
||||
"browser_use_runtime_start_timeout": 45,
|
||||
"browser_use_runtime_enable_ui": True,
|
||||
},
|
||||
"compression": {
|
||||
"enabled": True, # Auto-compress when approaching context limit
|
||||
|
|
@ -4652,6 +4658,15 @@ class HermesCLI:
|
|||
label = label[:47] + "..."
|
||||
self._spinner_text = f"{emoji} {label}"
|
||||
self._invalidate()
|
||||
if function_name == "internet_browser":
|
||||
browser_view_url = ""
|
||||
try:
|
||||
from tools.browser_use_manager import get_browser_use_view_url
|
||||
browser_view_url = get_browser_use_view_url(task_id=self.session_id)
|
||||
except Exception:
|
||||
browser_view_url = os.getenv("BROWSER_VIEW_URL", "").strip()
|
||||
if browser_view_url:
|
||||
_cprint(f" ┊ {emoji} Viewer: {browser_view_url}")
|
||||
|
||||
if not self._voice_mode:
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue