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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(ci): explain the silent handlers in the self-learning loop
rubenluetke10-beep9e0d19a8bb1b
diff --git a/jarvis/memory/learning/loop.py b/jarvis/memory/learning/loop.pyindex 020bc9ee96..5f13a3a3ae 100644--- a/jarvis/memory/learning/loop.py+++ b/jarvis/memory/learning/loop.py@@ -132,7 +132,7 @@ class JarvisLearningLoop:def _spawn(self, work: Awaitable[Any], *, name: str) -> None:try:task = asyncio.get_running_loop().create_task(self._guarded(work), name=name)- except RuntimeError:+ except RuntimeError: # no event loop (shutdown / sync caller): drop the work cleanlyif asyncio.iscoroutine(work):work.close()return@@ -246,7 +246,7 @@ class JarvisLearningLoop:returntry:loop = asyncio.get_running_loop()- except RuntimeError:+ except RuntimeError: # no event loop: no idle timer to arm, nothing lostreturnconversation.timer = loop.call_later(wait, lambda: self._schedule(key, reason="quiet conversation", force=True)diff --git a/jarvis/memory/learning/notebook.py b/jarvis/memory/learning/notebook.pyindex e25680f913..79c4416513 100644--- a/jarvis/memory/learning/notebook.py+++ b/jarvis/memory/learning/notebook.py@@ -206,7 +206,7 @@ class JarvisNotebook:for name in ("USER.md", "MEMORY.md"):try:stamps.append((folder / name).stat().st_mtime)- except OSError:+ except OSError: # missing file: a 0 stamp still marks the changestamps.append(0.0)return tuple(stamps)@@ -233,7 +233,7 @@ class JarvisNotebook:raw = path.read_text(encoding="utf-8") if path.is_file() else ""books[target] = parse(body(raw))return books- except Timeout:+ except Timeout: # a writer holds the books: None tells the caller to skip this readreturn Nonedef render(self, *, compact: bool = False, books: dict[str, list[Any]] | None = None) -> str:diff --git a/jarvis/memory/learning/review.py b/jarvis/memory/learning/review.pyindex 25c4233e21..8f34d111f2 100644--- a/jarvis/memory/learning/review.py+++ b/jarvis/memory/learning/review.py@@ -271,7 +271,7 @@ def validate(touched.add((target, entry_id))try:importance = int(item.get("importance", 5))- except (TypeError, ValueError):+ except (TypeError, ValueError): # a model's non-numeric score: use the neutral defaultimportance = 5accepted.append(Proposal(@@ -344,7 +344,7 @@ class ModelReviewer:def _check(agg: Any) -> str | None:try:parse(agg.text)- except (ValueError, json.JSONDecodeError) as exc:+ except (ValueError, json.JSONDecodeError) as exc: # reported as the returned reasonreturn f"malformed review: {exc}"return None