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 12:57)

Ruben Lütkeab2bd48a5b17
diff --git a/tests/unit/core/test_voice_continuation_config.py b/tests/unit/core/test_voice_continuation_config.py
index 6d0503a81c..50609ec612 100644
--- a/tests/unit/core/test_voice_continuation_config.py
+++ b/tests/unit/core/test_voice_continuation_config.py
@@ -8,7 +8,9 @@ def test_continuation_defaults():
cfg = VoiceConfig()
assert cfg.continuation_interrupt_enabled is True
assert cfg.continuation_grace_ms == 2500
- assert cfg.continuation_max_chain == 3
+ # Raised 3 -> 8 (2026-06-30): users correct themselves in several short bursts
+ # while the brain is still thinking; a low cap dropped the earliest context.
+ assert cfg.continuation_max_chain == 8
def test_continuation_overrides_apply():
diff --git a/tests/unit/sessions/test_recorder_lifecycle.py b/tests/unit/sessions/test_recorder_lifecycle.py
index 406eefa1bb..6625987546 100644
--- a/tests/unit/sessions/test_recorder_lifecycle.py
+++ b/tests/unit/sessions/test_recorder_lifecycle.py
@@ -211,6 +211,8 @@ async def test_continuation_finals_merge_into_one_turn(tmp_path) -> None:
turns[0].user_text
== "Was ist der weiteste Ort nicht australische sondern wirklich der weiteste"
)
+ finally:
+ store.close()
@pytest.mark.asyncio
@@ -260,6 +262,8 @@ async def test_continuation_merges_then_a_fresh_utterance_splits(tmp_path) -> No
turns = store.get_turns("s-mix")
user_texts = [t.user_text for t in turns]
assert user_texts == ["frage eins mit zusatz", "ganz neue frage"]
+ finally:
+ store.close()
@pytest.mark.asyncio