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(runner): include ultra in ReasoningEffort literal (#1060) (#1068)

Ahmet48aa3d8b5c95
diff --git a/dodaios/core/protocols.py b/dodaios/core/protocols.py
index 9f795cc131..1ff7c61c99 100644
--- a/dodaios/core/protocols.py
+++ b/dodaios/core/protocols.py
@@ -134,7 +134,7 @@ class BrainMessage:
#: The reasoning-effort ladder a request may ask for, ascending. Providers
#: without a knob ignore it; one that lacks a level snaps to the nearest it
#: has (see ``dodaios.agent_chat.effort``).
-ReasoningEffort = Literal["none", "minimal", "low", "medium", "high", "xhigh", "max"]
+ReasoningEffort = Literal["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]
@dataclass(frozen=True, slots=True)
diff --git a/tests/unit/agent_chat/test_runner_brain.py b/tests/unit/agent_chat/test_runner_brain.py
index 57e535956b..421fa136aa 100644
--- a/tests/unit/agent_chat/test_runner_brain.py
+++ b/tests/unit/agent_chat/test_runner_brain.py
@@ -461,3 +461,12 @@ async def test_a_turn_is_briefed_on_requests_still_running_behind_it(
assert text == "What is the weather tomorrow?" # the person's words, nothing added
briefing = kw["turn_override"].system_extra
assert "Tell Kai to fix the login bug." in briefing and "do not wait for it" in briefing
+
+
+def test_build_override_preserves_ultra_reasoning_effort(tmp_path):
+ svc = _service(None)
+ session = _jarvis_session(svc, tmp_path, provider="openai-codex", effort="ultra")
+ override = runner_brain.build_override(
+ session, None, stance="normal", cwd=tmp_path, ref="test-ref"
+ )
+ assert override.reasoning_effort == "ultra"