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.

test(society): pin the CLI runner in the coding-thread open test

rubenluetke10-beep96f7c3a7b1d3
diff --git a/tests/unit/society/test_coding_threads.py b/tests/unit/society/test_coding_threads.py
index 6063c90279..9a0c19fcca 100644
--- a/tests/unit/society/test_coding_threads.py
+++ b/tests/unit/society/test_coding_threads.py
@@ -125,7 +125,15 @@ async def open_thread(rt: Society, folder: Path, prompt: str = "Add a login page
return str(result.output["thread_id"])
-async def test_open_starts_a_thread_the_person_can_watch(society: Society, tmp_path: Path):
+async def test_open_starts_a_thread_the_person_can_watch(
+ society: Society, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
+):
+ # The Claude row runs on the CLI when it is installed, else on the API,
+ # whose ladder tops out at "auto". Pin the CLI so the check does not depend
+ # on what the test machine has installed.
+ import jarvis.agent_chat.service as chat_service
+
+ monkeypatch.setattr(chat_service, "resolve_runner", lambda *_a, **_k: "claude-cli")
rt = society
rt_service = rt.service
thread = await open_thread(rt, tmp_path)