From 71e35311f59f84b548534831a354b8307a346bf7 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Mon, 16 Mar 2026 07:20:43 -0700 Subject: [PATCH] fix(browser): model waits for user instruction after /browser connect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the injected context message to tell the model to await the user's instruction before operating the browser. Typical flow is: user opens Chrome → logs into sites → /browser connect → tells the agent what to do. --- cli.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cli.py b/cli.py index 85566756a..4036eff1d 100755 --- a/cli.py +++ b/cli.py @@ -3589,12 +3589,13 @@ class HermesCLI: # Inject context message so the model knows if hasattr(self, '_pending_input'): self._pending_input.put( - "[System note: The user has connected the browser tools to their live Chrome browser " - "session via Chrome DevTools Protocol. You now have access to their real browser — " - "any pages they have open, their logged-in sessions, bookmarks, etc. " - "Use the browser tools (browser_navigate, browser_snapshot, browser_click, etc.) " - "to interact with their live browser. Be mindful that actions affect their real browser. " - "Ask before closing tabs or navigating away from pages they might be using.]" + "[System note: The user has connected your browser tools to their live Chrome browser " + "via Chrome DevTools Protocol. Your browser_navigate, browser_snapshot, browser_click, " + "and other browser tools now control their real browser — including any pages they have " + "open, logged-in sessions, and cookies. They likely opened specific sites or logged into " + "services before connecting. Please await their instruction before attempting to operate " + "the browser. When you do act, be mindful that your actions affect their real browser — " + "don't close tabs or navigate away from pages without asking.]" ) elif sub == "disconnect":