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.

chore: auto-save WIP via Claude stop-hook safety net (2026-06-30 17:10)

Ruben Lütke31fef43ebb3a
diff --git a/tests/unit/plugins/tool/test_app_control_tools.py b/tests/unit/plugins/tool/test_app_control_tools.py
index e1e60ce71c..5385e3245d 100644
--- a/tests/unit/plugins/tool/test_app_control_tools.py
+++ b/tests/unit/plugins/tool/test_app_control_tools.py
@@ -100,8 +100,9 @@ async def test_describe_rejects_params():
async def test_describe_snapshot_structure(monkeypatch, configured_keys):
from jarvis.plugins.tool.describe_app_settings import DescribeAppSettingsTool
+ # Use gemini as brain — grok was removed from the brain provider list.
monkeypatch.setattr(
- "jarvis.brain.app_control.resolve_running_cfg", lambda: make_cfg()
+ "jarvis.brain.app_control.resolve_running_cfg", lambda: make_cfg(brain="gemini")
)
monkeypatch.setattr("jarvis.brain.app_control.list_mcp_servers", lambda: [])
@@ -112,7 +113,7 @@ async def test_describe_snapshot_structure(monkeypatch, configured_keys):
assert "brain" in out["providers"] and "tts" in out["providers"]
# active brain provider reflects cfg
actives = [p for p in out["providers"]["brain"] if p["active"]]
- assert actives and actives[0]["id"] == "grok"
+ assert actives and actives[0]["id"] == "gemini"
# secret-free: provider entries expose only booleans for credentials
for p in out["providers"]["brain"]:
assert isinstance(p["configured"], bool)
diff --git a/tests/unit/plugins/tts/test_gemini_sibling_bridge.py b/tests/unit/plugins/tts/test_gemini_sibling_bridge.py
index 497fb2ee4e..0ed8591dd7 100644
--- a/tests/unit/plugins/tts/test_gemini_sibling_bridge.py
+++ b/tests/unit/plugins/tts/test_gemini_sibling_bridge.py
@@ -131,8 +131,10 @@ async def test_synthesize_switches_to_sibling_on_429() -> None:
"gemini-2.5-flash-preview-tts",
]
# Cooldown timer parsed from the 429 (17270 s ± few seconds).
+ # Upper bound is 17271.0 to tolerate float drift: time.monotonic() + 17270.0
+ # can yield 17270.000000x when measured immediately after, exceeding 17270.0.
remaining = tts._quota_blocked_until - time.monotonic()
- assert 17260.0 < remaining <= 17270.0
+ assert 17260.0 < remaining <= 17271.0
@pytest.mark.asyncio