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.

docs(realtime): correct the scrub-gate _cleared flag to one-shot in the Phase 0+1 plan

Ruben Lütked1306e49b1b7
diff --git a/docs/realtime-voice/PLAN-phase-0-1.md b/docs/realtime-voice/PLAN-phase-0-1.md
index 80eef4b788..ccad01721d 100644
--- a/docs/realtime-voice/PLAN-phase-0-1.md
+++ b/docs/realtime-voice/PLAN-phase-0-1.md
@@ -578,6 +578,7 @@ class ScrubHoldGate:
if self._cleared:
out = self._pending + [chunk]
self._pending = []
+ self._cleared = False # one-shot: the next chunk re-buffers until its own transcript clears
return out
self._pending.append(chunk)
return []
@@ -588,7 +589,7 @@ class ScrubHoldGate:
return []
out = self._pending
self._pending = []
- self._cleared = True
+ self._cleared = False # released on timeout, not a clean transcript — go back to holding
return out
def drain(self) -> None: