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 15:43)

Ruben Lütke4187be8d33ba
diff --git a/scripts/config-soll.json b/scripts/config-soll.json
index 1e00842d7b..5826c7480c 100644
--- a/scripts/config-soll.json
+++ b/scripts/config-soll.json
@@ -32,7 +32,7 @@
"allow_sapi5_fallback": false
},
"brain": {
- "primary": "openrouter",
+ "primary": "gemini",
"fallback": "gemini",
"deep_brain": "gemini",
"routing_provider": "gemini",
diff --git a/tests/unit/ui/test_orb_bus_bridge.py b/tests/unit/ui/test_orb_bus_bridge.py
index 35e207388f..9926f5741b 100644
--- a/tests/unit/ui/test_orb_bus_bridge.py
+++ b/tests/unit/ui/test_orb_bus_bridge.py
@@ -984,6 +984,43 @@ async def test_orb_pops_in_when_background_task_finishes_while_idle() -> None:
assert ("show", "speak") in orb.calls
+async def test_delayed_hide_keeps_persistent_bar_visible_returns_to_idle() -> None:
+ """A persistent "show at all times" bar must NEVER be withdrawn by the
+ delayed hide that follows a background-task pop (``_on_background_completed``
+ shows the bar in 'speak' then schedules ``_delayed_hide``). Withdrawing the
+ always-on bar there was the "the bar vanishes after I talk to it, only the
+ wake word brings it back" path — the SAME class as the consolidate
+ restore-trap, via the one unconditional ``hide()`` the persistence gate in
+ ``_on_state`` never covered. The persistent bar returns to the idle pill."""
+ orb = _FakeOrb()
+ bridge = OrbBusBridge(
+ bus=_FakeBus(), orb=orb, idle_animations_enabled=False, hide_on_idle=False
+ ) # type: ignore[arg-type]
+ bridge._last_state = "IDLE" # noqa: SLF001
+
+ await bridge._delayed_hide(0.0) # noqa: SLF001
+
+ assert ("hide", None) not in orb.calls
+ assert ("show", "idle") in orb.calls
+
+
+async def test_delayed_hide_withdraws_non_persistent_bar() -> None:
+ """Regression guard: a non-persistent bar / mascot (``hide_on_idle=True``)
+ still withdraws on the delayed hide, so the salute/grace teardown after a
+ real session is unchanged. The persistence gate only spares the always-on
+ bar."""
+ orb = _FakeOrb()
+ bridge = OrbBusBridge(
+ bus=_FakeBus(), orb=orb, idle_animations_enabled=False, hide_on_idle=True
+ ) # type: ignore[arg-type]
+ bridge._last_state = "IDLE" # noqa: SLF001
+
+ await bridge._delayed_hide(0.0) # noqa: SLF001
+
+ assert ("hide", None) in orb.calls
+ assert ("show", "idle") not in orb.calls
+
+
async def test_attach_registers_mute_toggle_callback_with_orb() -> None:
"""``OrbBusBridge.attach()`` must inject a callback into the orb so
a double-double-click can publish on the bus.