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: justify the quiet handlers in the window watchdog and voice worker

rubenluetke10-beep4cba610494df
diff --git a/jarvis/ui/window_watchdog.py b/jarvis/ui/window_watchdog.py
index 8bef1c9468..a72a5e3432 100644
--- a/jarvis/ui/window_watchdog.py
+++ b/jarvis/ui/window_watchdog.py
@@ -534,7 +534,7 @@ def end_busy_renderers(
for child in _own_web_view_renderers(psutil):
try:
child.cpu_percent(None)
- except psutil.Error:
+ except psutil.Error: # a process that exited is skipped
continue
candidates.append(child)
if not candidates:
@@ -571,7 +571,7 @@ def _own_web_view_renderers(psutil: Any) -> list[Any]:
for browser in psutil.Process().children(recursive=False):
try:
browser_args = browser.cmdline()
- except psutil.Error:
+ except psutil.Error: # a process that exited is skipped
continue
if "--embedded-browser-webview=1" not in browser_args or any(
a.startswith("--type=") for a in browser_args
@@ -580,7 +580,7 @@ def _own_web_view_renderers(psutil: Any) -> list[Any]:
for child in browser.children(recursive=False):
try:
args = child.cmdline()
- except psutil.Error:
+ except psutil.Error: # a process that exited is skipped
continue
if "--type=renderer" in args and "--extension-process" not in args:
renderers.append(child)
diff --git a/jarvis/voice_engine/worker.py b/jarvis/voice_engine/worker.py
index 60139ddbbb..25d54a538a 100644
--- a/jarvis/voice_engine/worker.py
+++ b/jarvis/voice_engine/worker.py
@@ -100,6 +100,7 @@ def _windows_pipe_reader(source: BinaryIO) -> Callable[[], bytes] | None:
try:
handle = msvcrt.get_osfhandle(source.fileno())
except (OSError, ValueError, AttributeError):
+ # No OS handle: the caller falls back to plain reads.
return None
kernel32 = ctypes.WinDLL("kernel32", use_last_error=True)
peek = kernel32.PeekNamedPipe