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): route Codex browser approvals through Jarvis

rubenluetke10-beep2592c150e67b
diff --git a/jarvis/agent_chat/jarvis_harness.py b/jarvis/agent_chat/jarvis_harness.py
index d03d8fbeed..d0c43b5802 100644
--- a/jarvis/agent_chat/jarvis_harness.py
+++ b/jarvis/agent_chat/jarvis_harness.py
@@ -189,6 +189,11 @@ def codex_config_args(session_id: str | None = None) -> list[str]:
args += [
"-c",
f'mcp_servers.{_SERVER_NAME}.tools.society_propose_change.approval_mode="approve"',
+ # The browser entrypoint delegates each actual action to
+ # Jarvis' executor and its approval UI. Let it reach that
+ # boundary instead of asking exec for an unreadable prompt.
+ "-c",
+ f'mcp_servers.{_SERVER_NAME}.tools.society_browser.approval_mode="approve"',
]
return args
except Exception: # noqa: BLE001 — see mcp_config_json
diff --git a/tests/unit/society/test_cli_routines.py b/tests/unit/society/test_cli_routines.py
index b897c709c1..421ee18926 100644
--- a/tests/unit/society/test_cli_routines.py
+++ b/tests/unit/society/test_cli_routines.py
@@ -228,6 +228,7 @@ def test_resumed_society_seat_refreshes_routine_contract(monkeypatch, tmp_path):
)
assert "mcp_servers.jarvis.required=true" in plan.argv
assert 'mcp_servers.jarvis.tools.society_propose_change.approval_mode="approve"' in plan.argv
+ assert 'mcp_servers.jarvis.tools.society_browser.approval_mode="approve"' in plan.argv
assert not any("default_tools_approval_mode" in arg for arg in plan.argv)
assert "society_propose_change" in plan.stdin_text
assert "LARGE OLD IDENTITY" not in plan.stdin_text