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.

fix(live): justify the quiet timeout handlers in native live calls

rubenluetke10-beepa3ce1981ead3
diff --git a/jarvis/live/native.py b/jarvis/live/native.py
index b04cffcf4b..7231d8d566 100644
--- a/jarvis/live/native.py
+++ b/jarvis/live/native.py
@@ -270,7 +270,7 @@ class NativeLiveVoiceSession(LiveVoiceSession):
check = asyncio.ensure_future(probe())
try:
ready = bool(await asyncio.wait_for(asyncio.shield(check), _DUPLEX_PROBE_BUDGET_S))
- except TimeoutError:
+ except TimeoutError: # a late probe is logged by its callback
check.add_done_callback(_log_late_probe)
ready = False
except Exception:
@@ -548,7 +548,7 @@ class NativeLiveVoiceSession(LiveVoiceSession):
except asyncio.CancelledError:
work.cancel() # cancelling the call still cancels its tool, as before
raise
- except TimeoutError:
+ except TimeoutError: # a slow tool is released, not dropped
result = self._release_slow_tool(work, str(event.tool_name or ""))
images = take_images(result)
if self._closing: