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.

perf(brain): remember rejected optional params per endpoint+model — one adaptation round-trip, not one per tool step

Personal Jarvis Maintainer7f5429c5defd
diff --git a/tests/unit/brain/test_section_health.py b/tests/unit/brain/test_section_health.py
index 88b0e22aab..a11bcbc8df 100644
--- a/tests/unit/brain/test_section_health.py
+++ b/tests/unit/brain/test_section_health.py
@@ -100,7 +100,10 @@ def test_health_fingerprint_covers_every_model_selection_surface() -> None:
"""Every model-bearing API surface supersedes an older health snapshot."""
from jarvis.ui.web import provider_routes as pr
- openrouter = SimpleNamespace(model="brain-a", cu_model="cu-a")
+ # ``tool_model`` is the canonical Tool-Model field; the real
+ # BrainProviderConfig exposes ``cu_model`` only as a property alias of it,
+ # so the fingerprint reads (and this fake carries) the canonical name.
+ openrouter = SimpleNamespace(model="brain-a", tool_model="cu-a")
realtime = SimpleNamespace(model="realtime-a", voice="voice-a")
cfg = SimpleNamespace(
brain=SimpleNamespace(
@@ -126,7 +129,7 @@ def test_health_fingerprint_covers_every_model_selection_surface() -> None:
mutations = (
(openrouter, "model"),
- (openrouter, "cu_model"),
+ (openrouter, "tool_model"),
(cfg.tts, "model"),
(cfg.tts, "voice_de"),
(cfg.tts, "voice_en"),