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
chore(core): justify or report the quiet exception handlers CI flagged
rubenluetke10-beep658cac37414f
diff --git a/jarvis/agent_login_flow.py b/jarvis/agent_login_flow.pyindex 862a541cd0..ad616ad0c6 100644--- a/jarvis/agent_login_flow.py+++ b/jarvis/agent_login_flow.py@@ -193,6 +193,7 @@ def _mark_onboarded(account: AgentAccount) -> None:try:data = json.loads(path.read_text(encoding="utf-8-sig") or "{}")except (OSError, ValueError):+ # Missing or corrupt config is fine — it is just recreated below.data = {}if not isinstance(data, dict) or data.get("hasCompletedOnboarding"):return@@ -277,6 +278,8 @@ def _reader(flow: _Flow) -> None:try:data = handle.read(_READ_SIZE)except EOFError:+ # The PTY closed normally — the loop below already reports the+ # abnormal case (process died mid-read), so this one is quiet.breakexcept Exception as exc: # noqa: BLE001 — process died mid-readlogger.debug("Guided login: PTY read ended: {}", exc)diff --git a/jarvis/agentic_ide/folders.py b/jarvis/agentic_ide/folders.pyindex ee824a96f1..5bc9badba3 100644--- a/jarvis/agentic_ide/folders.py+++ b/jarvis/agentic_ide/folders.py@@ -347,12 +347,14 @@ def list_workspace_dir())except PermissionError:+ # Reported through the listing's own error field, not a log call.return WorkspaceListing(path=normalized_path,entries=(),error="This folder cannot be read with the current permissions.",)except OSError:+ # Reported through the listing's own error field, not a log call.return WorkspaceListing(path=normalized_path,entries=(),diff --git a/jarvis/brain/ollama_library.py b/jarvis/brain/ollama_library.pyindex 59eba1ccc2..a2bed8bffa 100644--- a/jarvis/brain/ollama_library.py+++ b/jarvis/brain/ollama_library.py@@ -92,6 +92,7 @@ def _size_to_gb(match: re.Match[str]) -> float | None:try:value = float(match.group(1))except ValueError:+ # Regex guarantees digits, but not that they parse; treat as unreadable.return Nonegb = value * _SIZE_FACTOR_GB[match.group(2)]# Two decimals keeps a 398 MB model at 0.4 rather than collapsing to 0.0,diff --git a/jarvis/core/process_utils.py b/jarvis/core/process_utils.pyindex e698eff669..2568f75ad9 100644--- a/jarvis/core/process_utils.py+++ b/jarvis/core/process_utils.py@@ -71,6 +71,8 @@ def ensure_standard_streams() -> None:try:stream.reconfigure(encoding="utf-8", errors="replace")except (AttributeError, OSError):+ # No reconfigure support or a closed/redirected stream — the+ # original stream keeps working, just without forced UTF-8.passdiff --git a/jarvis/hardware/detection.py b/jarvis/hardware/detection.pyindex f3898ed710..e9defd3474 100644--- a/jarvis/hardware/detection.py+++ b/jarvis/hardware/detection.py@@ -440,7 +440,7 @@ def usable_accelerator_gb() -> tuple[float, str]:if sys.platform == "darwin" and platform.machine() == "arm64":try:total_mb, _available = _detect_ram()- except Exception: # noqa: BLE001+ except Exception: # noqa: BLE001 — falls back to the "unknown accelerator" 0 abovetotal_mb = 0if total_mb > 0:return total_mb / 1024.0, "apple-unified"@@ -456,7 +456,7 @@ def system_ram_gb() -> float | None:"""try:total_mb, _available = _detect_ram()- except Exception: # noqa: BLE001+ except Exception: # noqa: BLE001 — locked-down host; None is the real answer, see abovereturn Nonereturn round(total_mb / 1024.0, 1) if total_mb > 0 else Nonediff --git a/jarvis/marketplace/token_store.py b/jarvis/marketplace/token_store.pyindex 321e5b32be..c36230dfd1 100644--- a/jarvis/marketplace/token_store.py+++ b/jarvis/marketplace/token_store.py@@ -47,6 +47,7 @@ def _parse_utc(raw: object) -> datetime | None:try:parsed = datetime.fromisoformat(raw)except ValueError:+ # Malformed stored timestamp is treated as absent, not fatal.return Nonereturn parsed if parsed.tzinfo is not None else parsed.replace(tzinfo=UTC)diff --git a/jarvis/missions/standalone_run.py b/jarvis/missions/standalone_run.pyindex a0521c5d5a..3eea3cf128 100644--- a/jarvis/missions/standalone_run.py+++ b/jarvis/missions/standalone_run.py@@ -73,6 +73,8 @@ def read_marker(run_dir: Path) -> dict[str, Any] | None:try:raw = (run_dir / MARKER_NAME).read_text(encoding="utf-8")except (OSError, UnicodeDecodeError):+ # Unreadable marker degrades to "ordinary directory", per the+ # function's own contract above — nothing else to report.return Nonetry:data = json.loads(raw)