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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
chore: auto-save WIP via Claude stop-hook safety net (2026-06-30 12:20)
Ruben Lütkef56bf27a8af3
diff --git a/tests/unit/ui/test_desktop_minimize_to_tray_overlay.py b/tests/unit/ui/test_desktop_minimize_to_tray_overlay.pyindex 89c9bd3209..6f822f281a 100644--- a/tests/unit/ui/test_desktop_minimize_to_tray_overlay.py+++ b/tests/unit/ui/test_desktop_minimize_to_tray_overlay.py@@ -1,13 +1,16 @@-"""Closing the window (X) = minimise to tray AND clear the overlay bar.+"""Closing the window (X) = minimise to tray; the OVERLAY follows the user's+"show bar at all times" choice.The X on the main window is wired to "minimise to tray", not "quit" (the app-keeps running so voice stays live). Previously the persistent jarvis-bar stayed-on screen after the X, which read as "the bar won't go away when I close Jarvis".+keeps running so voice stays live).Contract:-- ``_on_window_closing`` vetoes the destroy (returns False), hides the window,- and takes the bar off the screen too — without destroying the user's saved- ``bar_persistent`` preference, so reopening restores it.+- ``_on_window_closing`` vetoes the destroy (returns False) and hides the window.+- ``_suppress_overlay_for_hidden_window`` takes a NON-persistent bar off the+ screen on minimise, but NEVER touches a bar the user set to "show at all+ times" (``bar_persistent``). Forcing an always-on bar into hide-at-idle here+ was the "the bar vanishes after a while and only the wake word brings it back"+ regression — the user's explicit always-on preference must win.- a genuine quit (``_user_requested_quit``) is allowed through untouched; thereal ``shutdown()`` tears the bar down there.- ``_restore_overlay_for_visible_window`` puts the bar back into the user's@@ -54,31 +57,34 @@ def _app(*, persistent: bool, orb: object, bridge: object) -> DesktopApp:# --- suppress (window hidden) -------------------------------------------------def test_suppress_before_boot_reveal_does_not_cancel_startup_bar() -> None:+def test_suppress_is_noop_for_persistent_bar() -> None:+ """'Show at all times' wins: minimising the window must NOT clear an+ always-on bar (the 'bar vanishes after a while / only the wake word brings+ it back' regression). The live regime stays persistent, untouched."""bar = FakeBar()- bridge = SimpleNamespace(_hide_on_idle=False, _boot_reveal_done=False)+ bridge = SimpleNamespace(_hide_on_idle=False)app = _app(persistent=True, orb=bar, bridge=bridge)app._suppress_overlay_for_hidden_window()- assert bar.hidden is False- assert bridge._hide_on_idle is False+ assert bar.hidden is False # always-on bar stays on screen+ assert bridge._hide_on_idle is False # regime untouchedassert bar._persistent is Trueassert app.cfg.ui.bar_persistent is True-def test_suppress_hides_bar_and_flips_bridge_to_hide_on_idle() -> None:+def test_suppress_hides_non_persistent_bar() -> None:+ """A non-persistent bar (hide-at-idle) is taken off the screen on minimise+ so the desktop is clean. Only this regime is suppressed."""bar = FakeBar()bridge = SimpleNamespace(_hide_on_idle=False)- app = _app(persistent=True, orb=bar, bridge=bridge)+ app = _app(persistent=False, orb=bar, bridge=bridge)app._suppress_overlay_for_hidden_window()assert bar.hidden is Trueassert bridge._hide_on_idle is Trueassert bar._persistent is False- # The user's saved preference must NOT be mutated — only the live regime.- assert app.cfg.ui.bar_persistent is Truedef test_suppress_is_noop_without_overlay() -> None: