Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(browser): recover text-only models and release ended chat jobs

rubenluetke10-beep66d20e2611e0
diff --git a/jarvis/agent_chat/service.py b/jarvis/agent_chat/service.py
index 32b9400fd5..3a531f52d7 100644
--- a/jarvis/agent_chat/service.py
+++ b/jarvis/agent_chat/service.py
@@ -669,6 +669,10 @@ class AgentChatService:
),
)
finally:
+ if session.surface in ("jarvis", "society"):
+ from jarvis.society.browser.tool import stop_chat_browser
+
+ await stop_chat_browser(session_id)
self._running.pop(session_id, None)
stored_session = self.store.get_session(session_id)
set_chat_read_only(
diff --git a/jarvis/society/browser/bridge.py b/jarvis/society/browser/bridge.py
index 460460d36b..7281a3a219 100644
--- a/jarvis/society/browser/bridge.py
+++ b/jarvis/society/browser/bridge.py
@@ -155,7 +155,18 @@ async def execute_live(
if (
attempt == 0
and any(m.images for m in request.messages)
- and ("support image" in detail or "image input" in detail)
+ and (
+ not getattr(brain, "supports_vision", True)
+ or any(
+ marker in detail
+ for marker in (
+ "support image",
+ "image input",
+ "cannot see images",
+ "does not support vision",
+ )
+ )
+ )
):
vision_available = False
text = ""
@@ -257,8 +268,7 @@ async def execute_live(
if read_only:
task = (
"READ-ONLY: use navigation, reading and extraction only; "
- "no clicks, inputs, uploads or writes. "
- + task
+ "no clicks, inputs, uploads or writes. " + task
)
workspace = (Path(runtime.data_dir) / "society" / caller.agent_id / "workspace").resolve()
files = []
diff --git a/jarvis/society/browser/tool.py b/jarvis/society/browser/tool.py
index 9f668b6ec7..4a583ae3db 100644
--- a/jarvis/society/browser/tool.py
+++ b/jarvis/society/browser/tool.py
@@ -32,6 +32,30 @@ BROWSER_TOOL_NAME: Final[str] = "society_browser"
CAPABILITY_ID: Final[str] = "core:browser"
+async def stop_chat_browser(session_id: str) -> None:
+ """A disconnected planner cannot leave its browser running into the next turn."""
+ import asyncio
+
+ from ..runtime import current_runtime
+
+ runtime = current_runtime()
+ if runtime is None:
+ return
+ live = runtime.browser.live
+ for session in list(live.sessions.values()):
+ if session.active_chat != session_id or not session.run_lock.locked():
+ continue
+ try:
+ async with asyncio.timeout(5):
+ await live.cancel(session)
+ # Wait until the original tool has released its ownership; do
+ # not advertise an idle chat while its browser is still busy.
+ async with session.run_lock:
+ pass
+ except Exception:
+ log.warning("Could not stop the completed chat's browser task", exc_info=True)
+
+
def lead_browser_tools(session: Any = None, *, read_only: bool = False) -> dict[str, Any]:
"""The Jarvis root chat drives the same browser shown on the lead's card."""
from ..runtime import current_runtime
diff --git a/tests/contract/test_browser_contract.py b/tests/contract/test_browser_contract.py
index 1eb76607cb..bec52e8c91 100644
--- a/tests/contract/test_browser_contract.py
+++ b/tests/contract/test_browser_contract.py
@@ -1,13 +1,14 @@
"""Deterministic tests for browser contracts and policy boundaries."""
from types import SimpleNamespace
-from pathlib import Path
+
import pytest
+
from jarvis.society.browser.bridge import brain_messages
from jarvis.society.capabilities import (
+ build_catalog,
capability_id_for_tool,
tool_name_for_capability,
- build_catalog,
)
from jarvis.ui.web.society_browser_routes import validate_control
@@ -26,6 +27,7 @@ def test_browser_capability_roundtrip():
@pytest.mark.parametrize("platform", ["win32", "darwin", "linux"])
def test_native_window_probe_degrades_without_native_dependencies(monkeypatch, platform):
import importlib.util
+
from jarvis.society.browser import native_window
monkeypatch.setattr(native_window.sys, "platform", platform)
@@ -36,7 +38,9 @@ def test_native_window_probe_degrades_without_native_dependencies(monkeypatch, p
def test_add_menu_names_the_browser_as_chrome():
from jarvis.agent_chat.tool_catalog import build_catalog, keyword_rank
- rows = build_catalog({"society_browser": SimpleNamespace(description="Browse websites", risk_tier="monitor")})
+ rows = build_catalog(
+ {"society_browser": SimpleNamespace(description="Browse websites", risk_tier="monitor")}
+ )
row = next(row for row in rows if row.id == "tool:society_browser")
assert row.label == "Chrome / Browser"
assert keyword_rank("chrome", row) is not None
@@ -45,6 +49,7 @@ def test_add_menu_names_the_browser_as_chrome():
async def test_cold_browser_start_emits_progress_until_subscription_ready():
import asyncio
+
from jarvis.ui.web.society_browser_routes import _subscribe_with_progress
ready = asyncio.Event()
@@ -69,6 +74,7 @@ async def test_cold_browser_start_emits_progress_until_subscription_ready():
async def test_starting_viewer_transport_failure_cancels_subscription():
import asyncio
+
from jarvis.ui.web.society_browser_routes import _subscribe_with_progress
cancelled = asyncio.Event()
@@ -94,8 +100,8 @@ async def test_starting_viewer_transport_failure_cancels_subscription():
async def test_stopped_browser_turn_cannot_retry_but_new_user_turn_can(tmp_path):
- from jarvis.society.browser.live import LiveSessions
from jarvis.society.browser.bridge import execute_live
+ from jarvis.society.browser.live import LiveSessions
live = LiveSessions(tmp_path)
live.stop_turn("agent", "denied-turn")
@@ -110,6 +116,7 @@ async def test_stopped_browser_turn_cannot_retry_but_new_user_turn_can(tmp_path)
@pytest.mark.parametrize("chat_id", ["", "jarvis-root-test"])
async def test_stop_button_also_stops_the_owning_chat(monkeypatch, chat_id):
import asyncio
+
from jarvis.ui.web import society_browser_routes as routes
seen = []
@@ -146,8 +153,8 @@ async def test_stop_button_also_stops_the_owning_chat(monkeypatch, chat_id):
async def test_jarvis_chat_uses_the_lead_browser_with_its_selected_model(tmp_path, monkeypatch):
from jarvis.agent_chat.surface_kits import kit_for
from jarvis.agent_chat.tool_catalog import build_catalog, resolve_choices
- from jarvis.society.runtime import SocietyRuntime
from jarvis.core.protocols import ToolResult
+ from jarvis.society.runtime import SocietyRuntime
runtime = SocietyRuntime(tmp_path, seed_starter_team=False)
await runtime.ensure_started()
@@ -182,8 +189,8 @@ async def test_jarvis_chat_uses_the_lead_browser_with_its_selected_model(tmp_pat
async def test_upload_rejects_files_outside_the_agent_workspace(tmp_path, monkeypatch):
- from jarvis.society.browser.live import LiveSessions
from jarvis.society.browser.bridge import execute_live
+ from jarvis.society.browser.live import LiveSessions
monkeypatch.setattr("jarvis.core.config.get_jarvis_agent_secret", lambda _: None)
live = LiveSessions(tmp_path)
@@ -284,7 +291,9 @@ def test_managed_python_uses_windows_emulation_only_where_needed():
@pytest.mark.parametrize("burst", [False, True])
async def test_viewer_disconnect_cancels_pending_takeover(monkeypatch, burst):
import asyncio
+
from starlette.websockets import WebSocketDisconnect
+
from jarvis.ui.web import society_browser_routes as routes
started = asyncio.Event()
@@ -354,3 +363,98 @@ async def test_viewer_disconnect_cancels_pending_takeover(monkeypatch, burst):
else:
assert cancelled.is_set()
assert released.is_set()
+
+
+ "detail",
+ [
+ "This model cannot see images. Pick a multimodal model.",
+ "This model does not support image input.",
+ ],
+)
+async def test_text_only_model_retries_with_dom_and_keeps_images_disabled(
+ tmp_path, monkeypatch, detail
+):
+ from jarvis.core.protocols import BrainDelta
+ from jarvis.society.browser.bridge import execute_live
+ from jarvis.society.runtime import SocietyRuntime
+
+ seen = []
+
+ class TextBrain:
+ supports_vision = True # Adapter capability; the selected model is text-only.
+ context_window = 32768
+
+ async def complete(self, request):
+ seen.append(request)
+ if any(m.images for m in request.messages):
+ raise RuntimeError(detail)
+ yield BrainDelta(content='{"action": [{"done": {"success": true}}]}')
+
+ monkeypatch.setattr("jarvis.core.config.get_jarvis_agent_secret", lambda _: None)
+ rt = SocietyRuntime(tmp_path, seed_starter_team=False)
+ await rt.ensure_started()
+ rt.browser.live.model_resolver = lambda _: TextBrain()
+ rt.browser.live.executor = object()
+
+ async def run(agent, *, llm, **kwargs):
+ payload = {
+ "messages": [
+ {
+ "role": "user",
+ "content": [
+ {"type": "text", "text": "DOM: [1] button Save"},
+ {"type": "image_url", "image_url": {"url": "data:image/png;base64,YQ=="}},
+ ],
+ }
+ ]
+ }
+ assert (await llm(payload))["ok"]
+ assert (await llm(payload))["ok"]
+ return {"ok": True, "artifacts": []}
+
+ rt.browser.live.run = run
+ try:
+ agent, _ = await rt.roster.create(name="Text model", provider="ollama")
+ result = await execute_live(
+ rt, agent, rt.browser, {"task": "Read"}, SimpleNamespace(trace_id="dom", config={})
+ )
+ assert result.success
+ assert len(seen) == 3
+ assert seen[0].messages[0].images
+ assert all(not m.images for req in seen[1:] for m in req.messages)
+ assert all("DOM: [1] button Save" in str(req.messages[0].content) for req in seen)
+ finally:
+ await rt.close()
+
+
+async def test_completed_chat_cancels_only_its_pending_browser(tmp_path, monkeypatch):
+ import asyncio
+
+ from jarvis.society.browser.tool import stop_chat_browser
+ from jarvis.society.runtime import SocietyRuntime
+
+ rt = SocietyRuntime(tmp_path, seed_starter_team=False)
+ await rt.ensure_started()
+ cancelled = []
+ own = SimpleNamespace(active_chat="ended", run_lock=asyncio.Lock())
+ other = SimpleNamespace(active_chat="other", run_lock=asyncio.Lock())
+ idle = SimpleNamespace(active_chat="ended", run_lock=asyncio.Lock())
+ await own.run_lock.acquire()
+ await other.run_lock.acquire()
+
+ async def cancel(session):
+ cancelled.append(session)
+ session.run_lock.release()
+
+ rt.browser.live.sessions = {"own": own, "other": other, "idle": idle}
+ monkeypatch.setattr(rt.browser.live, "cancel", cancel)
+ try:
+ await stop_chat_browser("ended")
+ assert cancelled == [own]
+ assert not own.run_lock.locked()
+ assert other.run_lock.locked()
+ finally:
+ rt.browser.live.sessions.clear()
+ other.run_lock.release()
+ await rt.close()
diff --git a/tests/contract/test_browser_live.py b/tests/contract/test_browser_live.py
index e0c284cb84..03d1db06f5 100644
--- a/tests/contract/test_browser_live.py
+++ b/tests/contract/test_browser_live.py
@@ -1,12 +1,14 @@
"""Actual Browser-Use/Chromium checks; opt in with an isolated installed runtime."""
from __future__ import annotations
+
import asyncio
import os
import threading
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
from types import SimpleNamespace
+
import pytest
from jarvis.society.browser import install
@@ -20,14 +22,21 @@ pytestmark = pytest.mark.skipif(
@pytest.mark.skipif(os.name != "nt", reason="requires native Windows widgets")
def test_native_mouse_routes_text_to_the_webpage_widget(tmp_path):
import subprocess
+
from jarvis.core.process_utils import NO_WINDOW_CREATIONFLAGS
result = subprocess.run(
- [os.environ["JARVIS_BROWSER_TEST_PYTHON"],
- str(Path(__file__).with_name("native_window_probe.py")),
- os.environ["JARVIS_BROWSER_TEST_EXECUTABLE"], str(tmp_path / "profile")],
- env=install.worker_env(tmp_path), capture_output=True, encoding="utf-8",
- timeout=30, creationflags=NO_WINDOW_CREATIONFLAGS,
+ [
+ os.environ["JARVIS_BROWSER_TEST_PYTHON"],
+ str(Path(__file__).with_name("native_window_probe.py")),
+ os.environ["JARVIS_BROWSER_TEST_EXECUTABLE"],
+ str(tmp_path / "profile"),
+ ],
+ env=install.worker_env(tmp_path),
+ capture_output=True,
+ encoding="utf-8",
+ timeout=30,
+ creationflags=NO_WINDOW_CREATIONFLAGS,
)
assert result.returncode == 0, result.stdout + result.stderr
assert '"badge": true' in result.stdout
@@ -35,14 +44,21 @@ def test_native_mouse_routes_text_to_the_webpage_widget(tmp_path):
def test_actual_browser_click_emits_pointer_telemetry(tmp_path):
import subprocess
+
from jarvis.core.process_utils import NO_WINDOW_CREATIONFLAGS
result = subprocess.run(
- [os.environ["JARVIS_BROWSER_TEST_PYTHON"],
- str(Path(__file__).with_name("browser_pointer_probe.py")),
- os.environ["JARVIS_BROWSER_TEST_EXECUTABLE"], str(tmp_path / "profile")],
- env=install.worker_env(tmp_path), capture_output=True, encoding="utf-8",
- timeout=40, creationflags=NO_WINDOW_CREATIONFLAGS,
+ [
+ os.environ["JARVIS_BROWSER_TEST_PYTHON"],
+ str(Path(__file__).with_name("browser_pointer_probe.py")),
+ os.environ["JARVIS_BROWSER_TEST_EXECUTABLE"],
+ str(tmp_path / "profile"),
+ ],
+ env=install.worker_env(tmp_path),
+ capture_output=True,
+ encoding="utf-8",
+ timeout=40,
+ creationflags=NO_WINDOW_CREATIONFLAGS,
)
assert result.returncode == 0, result.stdout + result.stderr
assert '"clicked": true' in result.stdout
@@ -60,7 +76,8 @@ class PageHandler(BaseHTTPRequestHandler):
body = b"""<!doctype html><title>Live browser fixture</title>
<input aria-label="Name"><a href="/download">Download fixture</a>
<form method="POST" action="/upload" enctype="multipart/form-data">
- <input type="file" name="attachment" aria-label="Upload" onchange="this.form.requestSubmit()"></form>
+ <input type="file" name="attachment" aria-label="Upload"
+ onchange="this.form.requestSubmit()"></form>
<h1 id="counter">0</h1>
<script>let n=0;function paint(){document.querySelector('#counter').textContent=++n;
document.body.style.background=n%2?'#fdd':'#ddf';requestAnimationFrame(paint)}
@@ -161,7 +178,9 @@ async def test_viewer_replaces_idle_legacy_page_session(live):
@pytest.mark.skipif(os.name != "nt", reason="requires the native Windows window transport")
async def test_native_chrome_toolbar_keyboard_and_agent_handoff(live, site):
- agent = SimpleNamespace(agent_id="native", model="", browser_allowed_domains=["http*://127.0.0.1"])
+ agent = SimpleNamespace(
+ agent_id="native", model="", browser_allowed_domains=["http*://127.0.0.1"]
+ )
try:
session, queue = await live.subscribe(agent)
while True:
@@ -194,8 +213,8 @@ async def test_native_chrome_toolbar_keyboard_and_agent_handoff(live, site):
async def test_takeover_pauses_and_resumes_the_same_browser_job(live, site):
- import json
import contextvars
+ import json
agent = SimpleNamespace(
agent_id="paused", model="", browser_allowed_domains=["http*://127.0.0.1"]
@@ -344,7 +363,7 @@ async def test_agent_download_is_a_current_task_workspace_artifact(live, site):
)
path = Path(result["artifacts"][0])
assert path.is_relative_to(live.data_dir / "society" / "files" / "workspace")
- assert path.read_bytes() == b"isolated browser download"
+ assert await asyncio.to_thread(path.read_bytes) == b"isolated browser download"
again = await live.run(
agent,
task="Finish without downloading",
@@ -519,3 +538,73 @@ async def test_idle_animation_stream_soak(live, site, record_property):
assert not session.run_lock.locked()
finally:
await live.close()
+
+
+async def test_finished_chat_releases_real_browser_for_the_next_task(live, monkeypatch):
+ import json
+
+ from jarvis.society.browser.tool import stop_chat_browser
+
+ agent = SimpleNamespace(agent_id="orphan", model="", browser_allowed_domains=[])
+ thinking = asyncio.Event()
+ release = asyncio.Event()
+
+ async def model(payload):
+ if payload["schema"].get("title") == "JudgementResult":
+ return {"ok": True, "text": json.dumps({"verdict": True, "reasoning": "Finished"})}
+ thinking.set()
+ await release.wait()
+ return {
+ "ok": True,
+ "text": json.dumps(
+ {
+ "thinking": "",
+ "evaluation_previous_goal": "Ready",
+ "memory": "",
+ "next_goal": "Finish",
+ "action": [{"done": {"text": "Finished", "success": True}}],
+ }
+ ),
+ }
+
+ async def apply(payload):
+ await payload["apply"]()
+ return {"ok": True}
+
+ monkeypatch.setattr(
+ "jarvis.society.runtime.current_runtime",
+ lambda: SimpleNamespace(browser=SimpleNamespace(live=live)),
+ )
+ job = asyncio.create_task(
+ live.run(
+ agent,
+ task="Wait",
+ max_steps=2,
+ llm=model,
+ action=apply,
+ vision=False,
+ chat_session_id="ended",
+ )
+ )
+ try:
+ await asyncio.wait_for(thinking.wait(), 45)
+ await stop_chat_browser("ended")
+ await asyncio.wait_for(asyncio.gather(job, return_exceptions=True), 5)
+ assert not live.sessions[agent.agent_id].run_lock.locked()
+ assert not live.sessions[agent.agent_id].closed
+ release.set()
+ result = await live.run(
+ agent,
+ task="Finish",
+ max_steps=2,
+ llm=model,
+ action=apply,
+ vision=False,
+ chat_session_id="next",
+ )
+ assert result["ok"]
+ finally:
+ release.set()
+ job.cancel()
+ await asyncio.gather(job, return_exceptions=True)
+ await live.close()
diff --git a/tests/contract/test_browser_model_live.py b/tests/contract/test_browser_model_live.py
index b7cbff2e71..c5a00ff214 100644
--- a/tests/contract/test_browser_model_live.py
+++ b/tests/contract/test_browser_model_live.py
@@ -1,38 +1,60 @@
"""Opt-in end-to-end tasks using real model access and the managed browser."""
+
from __future__ import annotations
+
import asyncio
import os
import threading
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
-from types import SimpleNamespace
+from urllib.parse import parse_qs
from uuid import uuid4
import pytest
+from jarvis.brain.resolver import resolve_browser_brain
from jarvis.core.bus import EventBus
from jarvis.core.config import SafetyConfig, load_config
from jarvis.core.protocols import ExecutionContext
-from jarvis.brain.resolver import resolve_browser_brain
from jarvis.safety.approval import ApprovalWorkflow
from jarvis.safety.risk_tier import RiskTierEvaluator
from jarvis.safety.tool_executor import ToolExecutor
-from jarvis.society.runtime import SocietyRuntime
from jarvis.society.browser.bridge import execute_live
+from jarvis.society.runtime import SocietyRuntime
+
+pytestmark = pytest.mark.skipif(
+ os.environ.get("JARVIS_BROWSER_MODEL_TEST") != "1",
+ reason="requires authorized live model access",
+)
-pytestmark = pytest.mark.skipif(os.environ.get("JARVIS_BROWSER_MODEL_TEST") != "1",
- reason="requires authorized live model access")
class FormHandler(BaseHTTPRequestHandler):
received = []
+
def do_GET(self):
body = b"""<!doctype html><title>Browser task fixture</title><h1>Test form</h1>
<form method="post" action="/submit"><label>Name <input name="name"></label>
<button type="submit">Save test form</button></form>"""
+ if self.path == "/widgets":
+ body = b"""<!doctype html><title>Browser widgets fixture</title><h1>Widget form</h1>
+ <form method="post" action="/submit" onsubmit="
+ this.elements.shadow.value=document.querySelector('#shadow').shadowRoot.querySelector('input').value;
+ this.elements.frame.value=document.querySelector('iframe').contentDocument.querySelector('input').value;">
+ <label>Name <input name="name"></label>
+ <label>Country <select name="country"><option value="US">United States</option>
+ <option value="CA">Canada</option></select></label>
+ <label><input type="checkbox" name="updates" value="yes">Updates</label>
+ <div id="shadow"></div><input type="hidden" name="shadow">
+ <iframe title="Embedded form"
+ srcdoc='<label>Frame field<input aria-label="Frame field"></label>'></iframe>
+ <input type="hidden" name="frame"><button>Save test form</button></form>
+ <script>document.querySelector('#shadow').attachShadow({mode:'open'}).innerHTML=
+ '<label>Shadow field<input aria-label="Shadow field"></label>';</script>"""
self.send_response(200)
self.send_header("Content-Type", "text/html")
self.end_headers()
self.wfile.write(body)
+
def do_POST(self):
data = self.rfile.read(int(self.headers.get("Content-Length", "0")))
self.received.append(data)
@@ -40,18 +62,25 @@ class FormHandler(BaseHTTPRequestHandler):
self.send_header("Content-Type", "text/html")
self.end_headers()
self.wfile.write(b"<h1>Test form saved successfully</h1>")
+
def log_message(self, *args):
pass # Deterministic fixture; request logs add no test evidence.
-async def test_actual_model_submits_fixture_form(tmp_path):
+
[email protected]("widgets", [False, True], ids=["simple", "iframe-shadow-select"])
+async def test_actual_model_submits_fixture_form(tmp_path, widgets):
provider = os.environ.get("JARVIS_BROWSER_MODEL_PROVIDER", "openai")
data = Path(os.environ["JARVIS_BROWSER_MODEL_DATA"])
runtime = SocietyRuntime(data, seed_starter_team=False)
await runtime.ensure_started()
name = "Browser test " + uuid4().hex[:7]
agent, _ = await runtime.roster.create(
- name=name, provider=provider, model="", browser_allowed_domains=["http*://127.0.0.1"],
- permission_ceiling="monitor", approval_rules={"always_allow": ["core:browser"]},
+ name=name,
+ provider=provider,
+ model=os.environ.get("JARVIS_BROWSER_MODEL_NAME", ""),
+ browser_allowed_domains=["http*://127.0.0.1"],
+ permission_ceiling="monitor",
+ approval_rules={"always_allow": ["core:browser"]},
)
cfg = load_config()
runtime.browser.live.model_resolver = lambda a: resolve_browser_brain(cfg, a.provider, a.model)
@@ -65,12 +94,41 @@ async def test_actual_model_submits_fixture_form(tmp_path):
thread.start()
ctx = ExecutionContext(uuid4(), "Fill the disposable test form", {}, None)
try:
- result = await asyncio.wait_for(execute_live(runtime, agent, runtime.browser, {
- "task": "Fill the Name field with Ada, click Save test form, then report the success heading.",
- "url": f"http://127.0.0.1:{server.server_port}", "max_steps": 8,
- }, ctx), timeout=240)
+ result = await asyncio.wait_for(
+ execute_live(
+ runtime,
+ agent,
+ runtime.browser,
+ {
+ "task": (
+ "Fill Name with Ada, select Canada, check Updates, enter Shadow in "
+ "Shadow field and Frame in Frame field inside the embedded frame. "
+ "Click Save test form and report the success heading."
+ if widgets
+ else "Fill Name with Ada, click Save test form, then report success."
+ ),
+ "url": f"http://127.0.0.1:{server.server_port}"
+ + ("/widgets" if widgets else "/"),
+ "max_steps": 12 if widgets else 8,
+ },
+ ctx,
+ ),
+ timeout=240,
+ )
assert result.success, result.error or result.output
assert any(b"name=Ada" in body for body in FormHandler.received), result.output
+ if widgets:
+ assert any(
+ parse_qs(body.decode())
+ == {
+ "name": ["Ada"],
+ "country": ["CA"],
+ "updates": ["yes"],
+ "shadow": ["Shadow"],
+ "frame": ["Frame"],
+ }
+ for body in FormHandler.received
+ ), result.output
session = runtime.browser.live.sessions[agent.agent_id]
assert not session.closed
finally:
@@ -78,4 +136,3 @@ async def test_actual_model_submits_fixture_form(tmp_path):
server.shutdown()
server.server_close()
thread.join()
-