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-07-02 09:06)

Ruben Lütke84c899303d15
diff --git a/tests/unit/speech/test_rolling_whisper_wake_steady_state.py b/tests/unit/speech/test_rolling_whisper_wake_steady_state.py
index 49e00d1228..d3f7009bc8 100644
--- a/tests/unit/speech/test_rolling_whisper_wake_steady_state.py
+++ b/tests/unit/speech/test_rolling_whisper_wake_steady_state.py
@@ -52,12 +52,17 @@ class _LockedSTT:
def __init__(self, first_call_s: float | None) -> None:
self._first_call_s = first_call_s
self._first_started = False
+ self._bg_task: asyncio.Task | None = None
self.busy = False
self.is_warm = True
self.completed = 0
self.recover_calls = 0
self.warm_up_calls = 0
+ def cancel_background(self) -> None:
+ if self._bg_task is not None:
+ self._bg_task.cancel()
+
async def transcribe_pcm(self, pcm, sample_rate=16000, language=None): # noqa: ANN001
if self.busy:
raise TranscribeBusy("a transcription is already in flight")