mirror of
https://github.com/usestrix/strix.git
synced 2026-09-16 23:41:18 +00:00
prevent browseruse from killing cdp connection
This commit is contained in:
parent
f35f287dff
commit
e461905ab9
1 changed files with 5 additions and 0 deletions
|
|
@ -135,6 +135,11 @@ async def _run_browser_agent(
|
|||
metadata: dict[str, Any] | None = None,
|
||||
) -> dict[str, Any]:
|
||||
llm = _build_llm(metadata=metadata)
|
||||
|
||||
# [fix] prevent browseruse from killing the cdp
|
||||
# connection after execution (go figure)
|
||||
session.browser.browser_profile.keep_alive = True
|
||||
|
||||
agent: Any = Agent(
|
||||
task=task,
|
||||
llm=llm,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue