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(quality): account for the nine silent exception handlers recent feature work added

rubenluetke10-beepa6c286187092
diff --git a/jarvis/agentic_ide/agent_transcript.py b/jarvis/agentic_ide/agent_transcript.py
index ace2aba6da..165d4d12a5 100644
--- a/jarvis/agentic_ide/agent_transcript.py
+++ b/jarvis/agentic_ide/agent_transcript.py
@@ -163,6 +163,8 @@ def _rows(path: Path) -> list[dict[str, Any]]:
try:
payload = json.loads(stripped)
except (ValueError, TypeError):
+ # Not a JSON line — transcripts interleave plain text with JSONL,
+ # so skipping is the parse contract, not a swallowed failure.
continue
if isinstance(payload, dict):
out.append(payload)
@@ -208,6 +210,7 @@ def _headline(payload: Any) -> tuple[str, str]:
try:
detail = json.dumps(payload, indent=2, ensure_ascii=False)
except (TypeError, ValueError):
+ # Unserializable args still get shown — str() is the honest fallback.
detail = str(payload)
return (target[:200], _clip(detail))
@@ -360,6 +363,7 @@ def _codex_turns(session_id: str, home: Path | None) -> list[Turn] | None:
try:
arguments = json.loads(arguments)
except (ValueError, TypeError):
+ # Keep the raw string — _headline renders either shape.
pass
target, detail = _headline(arguments)
_step(
diff --git a/jarvis/diagnostics/realtime_forensics.py b/jarvis/diagnostics/realtime_forensics.py
index ff52d95159..ed8c237833 100644
--- a/jarvis/diagnostics/realtime_forensics.py
+++ b/jarvis/diagnostics/realtime_forensics.py
@@ -40,6 +40,8 @@ def _count(pm: Mapping[str, Any], key: str) -> int:
try:
return int(pm.get(key, 0) or 0)
except (TypeError, ValueError):
+ # A malformed postmortem field reads as zero — the findings below
+ # judge counts, and "unknown" must not fabricate a failure class.
return 0
diff --git a/jarvis/diagnostics/realtime_probe.py b/jarvis/diagnostics/realtime_probe.py
index f64a9307ee..bfe9b0da8c 100644
--- a/jarvis/diagnostics/realtime_probe.py
+++ b/jarvis/diagnostics/realtime_probe.py
@@ -201,6 +201,8 @@ class ProbeSurface:
try:
return await asyncio.wait_for(_loop(), timeout_s)
except TimeoutError:
+ # "No matching message within the window" IS this helper's answer;
+ # callers assert on None and report the miss themselves.
return None
diff --git a/jarvis/plugins/brain/_openai_base.py b/jarvis/plugins/brain/_openai_base.py
index 267807b1ea..4f2e885e8e 100644
--- a/jarvis/plugins/brain/_openai_base.py
+++ b/jarvis/plugins/brain/_openai_base.py
@@ -434,6 +434,11 @@ async def _stream_via_responses(
try:
parsed = json.loads(getattr(item, "arguments", "") or "{}")
except json.JSONDecodeError:
+ log.warning(
+ "Responses stream: tool call %r arrived with "
+ "unparseable arguments; executing with empty input.",
+ name,
+ )
parsed = {}
tool_calls.append({
"id": (
diff --git a/jarvis/plugins/realtime/codex_subscription.py b/jarvis/plugins/realtime/codex_subscription.py
index 11a02fa690..95e571a046 100644
--- a/jarvis/plugins/realtime/codex_subscription.py
+++ b/jarvis/plugins/realtime/codex_subscription.py
@@ -1179,6 +1179,8 @@ class _CodexSubscriptionRealtimeSession:
# so dropping the nudge there changes nothing.
queue.put_nowait(("self_dialogue", None))
except asyncio.QueueFull:
+ # A full queue already wakes the receive loop (see
+ # above) — the nudge would be redundant, not lost.
pass
elif (
refusal_run >= _REFUSALS_BEFORE_REBUILD
diff --git a/jarvis/plugins/realtime/openai_realtime.py b/jarvis/plugins/realtime/openai_realtime.py
index cca100ed57..fd9cfbb548 100644
--- a/jarvis/plugins/realtime/openai_realtime.py
+++ b/jarvis/plugins/realtime/openai_realtime.py
@@ -1497,7 +1497,13 @@ class LocalRealtimeProvider:
server_log = open( # noqa: SIM115 — handed to the child for its lifetime
log_dir / "local_realtime_server.log", "ab"
)
- except OSError:
+ except OSError as exc:
+ log.warning(
+ "Local realtime server: could not open %s (%s); the child "
+ "runs without a persisted server log.",
+ log_dir / "local_realtime_server.log",
+ exc,
+ )
server_log = None
try:
if os.name == "nt":
diff --git a/jarvis/realtime/session.py b/jarvis/realtime/session.py
index e602f03cd9..5b6a580c9b 100644
--- a/jarvis/realtime/session.py
+++ b/jarvis/realtime/session.py
@@ -2965,6 +2965,8 @@ class RealtimeVoiceSession:
**update_kwargs
)
except TypeError:
+ # Still too new for this adapter — retire the
+ # next-youngest field and try again.
update_kwargs.pop("turn_directive", None)
try:
await self._session.update_session(