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: every quiet except added since v1.3.2 now says why it is quiet, or logs

Harald9ab38945fd95
diff --git a/jarvis/brain/cost.py b/jarvis/brain/cost.py
index ac7ab2c0f1..94e517968f 100644
--- a/jarvis/brain/cost.py
+++ b/jarvis/brain/cost.py
@@ -219,6 +219,8 @@ def _load_feed() -> None:
try:
mtime = path.stat().st_mtime
except OSError:
+ # No catalog cache (yet) — the built-in price table applies until the
+ # catalog has been fetched once; a stale feed is dropped meanwhile.
if _feed_loaded is not None:
_feed_rates.clear()
_feed_by_name.clear()
diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.py
index 457397d2fd..a94198951d 100644
--- a/jarvis/brain/manager.py
+++ b/jarvis/brain/manager.py
@@ -1526,7 +1526,7 @@ def _is_whole_structured_document(text: str) -> bool:
json.loads(s)
return True
except (json.JSONDecodeError, ValueError):
- pass
+ pass # not JSON — the Python-repr shape is tried next
# A Python repr is not JSON but is just as unspeakable. Literals only —
# ``literal_eval`` never executes anything. Bounded so a long prose answer
# that merely opens with a bracket cannot cost real parse time.
@@ -1535,7 +1535,7 @@ def _is_whole_structured_document(text: str) -> bool:
try:
ast.literal_eval(s)
except (ValueError, SyntaxError, MemoryError, RecursionError):
- return False
+ return False # not a Python literal either — this is prose, not a blob
return True
diff --git a/jarvis/brain/model_catalog.py b/jarvis/brain/model_catalog.py
index 575b336895..c279e88012 100644
--- a/jarvis/brain/model_catalog.py
+++ b/jarvis/brain/model_catalog.py
@@ -864,7 +864,7 @@ def _pricing(entry: dict) -> tuple[float, float] | None:
prompt = float(pricing.get("prompt"))
completion = float(pricing.get("completion"))
except (TypeError, ValueError):
- return None
+ return None # missing or non-numeric price — same as no pricing block
if prompt < 0 or completion < 0:
return None
return (prompt * 1_000_000, completion * 1_000_000)
diff --git a/jarvis/brain/modes.py b/jarvis/brain/modes.py
index 59882e44eb..d3237379d7 100644
--- a/jarvis/brain/modes.py
+++ b/jarvis/brain/modes.py
@@ -295,7 +295,10 @@ def _read_dir(directory: Path, *, built_in: bool) -> dict[str, Mode]:
found: dict[str, Mode] = {}
try:
entries = sorted(directory.glob(f"*{_MODE_FILE_SUFFIX}"))
- except OSError:
+ except OSError as exc:
+ # An unreadable modes directory contributes nothing; the built-in
+ # (or user) side still applies, so this is a debug note, not a failure.
+ log.debug("modes: cannot list %s (%s) — skipping that directory", directory, exc)
return found
for path in entries:
mode = _parse_mode_file(path, built_in=built_in)
@@ -335,7 +338,7 @@ def get_mode(slug: str) -> Mode | None:
try:
wanted = normalize_slug(slug)
except ModeError:
- return None
+ return None # an invalid slug names no mode — the docstring promises None
for mode in list_modes():
if mode.slug == wanted:
return mode
@@ -347,7 +350,7 @@ def has_user_copy(slug: str) -> bool:
try:
return _mode_path(normalize_slug(slug)).is_file()
except (ModeError, OSError):
- return False
+ return False # no valid slug or no readable file: either way, no user copy
# ---------------------------------------------------------------------------
@@ -493,7 +496,7 @@ def _atomic_write(path: Path, text: str) -> None:
try:
os.unlink(tmp_name)
except OSError:
- pass
+ pass # best-effort temp cleanup — the original error re-raised below matters
raise
@@ -560,7 +563,7 @@ def delete_mode(slug: str) -> bool:
_mode_path(safe_slug).unlink()
removed = True
except FileNotFoundError:
- removed = False
+ removed = False # idempotent: nothing to delete is a "no", not an error
except OSError as exc:
raise ModeError(f"Could not delete {safe_slug!r}: {exc}") from exc
@@ -587,7 +590,7 @@ def restore_builtin(slug: str) -> bool:
_mode_path(safe_slug).unlink()
return True
except FileNotFoundError:
- return False
+ return False # no user copy to drop — the packaged version already applies
except OSError as exc:
raise ModeError(f"Could not restore {safe_slug!r}: {exc}") from exc
diff --git a/jarvis/cli_ctl/commands/marketplace.py b/jarvis/cli_ctl/commands/marketplace.py
index 2b29b9d303..99a439c341 100644
--- a/jarvis/cli_ctl/commands/marketplace.py
+++ b/jarvis/cli_ctl/commands/marketplace.py
@@ -186,7 +186,7 @@ def _report_already_there(kind: str, item_id: str, client: Any) -> int:
try:
detail = client.request("GET", f"/api/skills/{item_id}")
except ApiError:
- detail = {}
+ detail = {} # detail is best-effort — the status line reads "unknown" below
state = str(detail.get("state") or "unknown")
ready = state in ("active", "validated")
_field(
@@ -206,7 +206,7 @@ def _report_already_there(kind: str, item_id: str, client: Any) -> int:
status = str(plugin.get("status") or "unknown")
break
except ApiError:
- pass
+ pass # listing is best-effort — status stays "unknown" and the user is told to connect
if status == "connected":
_field("Status", "connected and usable")
else:
diff --git a/jarvis/marketplace/community_install.py b/jarvis/marketplace/community_install.py
index 593c67c9e5..a1718c90ae 100644
--- a/jarvis/marketplace/community_install.py
+++ b/jarvis/marketplace/community_install.py
@@ -50,7 +50,7 @@ def _read_override() -> dict[str, Any]:
return raw
logger.warning("plugin catalog override has no plugins list — rebuilding")
except FileNotFoundError:
- pass
+ pass # no override file yet — a fresh skeleton is built below
except (OSError, ValueError) as exc:
# Never silently discard a user's catalog: an unreadable override is
# surfaced to the caller instead of being overwritten with a skeleton.
diff --git a/jarvis/marketplace/community_source.py b/jarvis/marketplace/community_source.py
index 1e8167d003..9f83aaec89 100644
--- a/jarvis/marketplace/community_source.py
+++ b/jarvis/marketplace/community_source.py
@@ -265,7 +265,7 @@ def _read_cache() -> tuple[float, CommunityIndex] | None:
raw = json.loads(_CACHE_PATH.read_text(encoding="utf-8-sig"))
return float(raw["fetched_at"]), CommunityIndex.model_validate(raw["index"])
except FileNotFoundError:
- return None
+ return None # no cache yet — the caller fetches the index
except (OSError, ValueError, KeyError, ValidationError) as exc:
logger.warning("community index: unreadable cache (%s) — refetching", exc)
return None
diff --git a/jarvis/plugins/tool/assistant_mode.py b/jarvis/plugins/tool/assistant_mode.py
index e36ab1366d..97798f5b79 100644
--- a/jarvis/plugins/tool/assistant_mode.py
+++ b/jarvis/plugins/tool/assistant_mode.py
@@ -70,6 +70,7 @@ class SwitchModeTool:
try:
mode = modes.set_active(slug)
except modes.ModeError as exc:
+ # Reported through the tool result: the model hears the exact reason.
available = ", ".join(m.slug for m in modes.list_modes())
return ToolResult(
success=False,
@@ -174,8 +175,11 @@ class SaveModeTool:
proactivity=str(args.get("proactivity") or modes.PROACTIVITY_NORMAL),
)
except modes.ModeError as exc:
+ # Both failures travel back to the model as the tool error — that is
+ # the report; the model turns it into words for the user.
return ToolResult(success=False, output=None, error=str(exc))
except OSError as exc:
+ # Same as above: the disk problem is spelled out in the tool error.
return ToolResult(success=False, output=None, error=f"Could not save the mode: {exc}")
if not bool(args.get("activate")):
diff --git a/jarvis/plugins/tool/spotify_rest.py b/jarvis/plugins/tool/spotify_rest.py
index a749ea12c8..286fa12dd1 100644
--- a/jarvis/plugins/tool/spotify_rest.py
+++ b/jarvis/plugins/tool/spotify_rest.py
@@ -551,7 +551,7 @@ class SpotifyRestTool:
out = await self.list_playlists()
else:
return ToolResult(success=False, output=None, error=f"unknown action {action!r}")
- except Exception as exc: # noqa: BLE001
+ except Exception as exc: # noqa: BLE001 - every failure reaches the model via _explain()
return ToolResult(success=False, output=None, error=self._explain(exc))
if isinstance(out, dict) and out.get("error"):
diff --git a/jarvis/skills/creator_service.py b/jarvis/skills/creator_service.py
index b31941ac68..99be875411 100644
--- a/jarvis/skills/creator_service.py
+++ b/jarvis/skills/creator_service.py
@@ -260,7 +260,10 @@ def _clean_triggers(raw: Any, inp: SkillCreatorInput) -> list[dict[str, Any]]:
continue
try:
re.compile(pattern)
- except re.error:
+ except re.error as exc:
+ _LOG.debug(
+ "creator: dropped voice trigger with invalid regex %r (%s)", pattern, exc
+ )
continue
trig: dict[str, Any] = {"type": "voice", "pattern": pattern}
langs = item.get("language")
@@ -744,7 +747,8 @@ class SkillCreatorService:
resolve_quality_brain,
resolve_tool_model_brain,
)
- except Exception: # noqa: BLE001
+ except Exception as exc: # noqa: BLE001
+ _LOG.info("creator: brain resolver unavailable (%s) — provider ladder ends here", exc)
return
for label, resolver in (
diff --git a/jarvis/skills/origin.py b/jarvis/skills/origin.py
index 74960b4560..e3027829fe 100644
--- a/jarvis/skills/origin.py
+++ b/jarvis/skills/origin.py
@@ -70,7 +70,7 @@ def read_origin(skill_root: Path) -> SkillOrigin | None:
try:
raw = json.loads(path.read_text(encoding="utf-8-sig"))
except FileNotFoundError:
- return None
+ return None # no receipt — nobody installed this skill through the marketplace
except (OSError, ValueError) as exc:
log.debug("skill origin receipt unreadable at %s: %s", path, exc)
return None
diff --git a/jarvis/ui/desktop_app.py b/jarvis/ui/desktop_app.py
index e59afc3ac1..e0a4ea787c 100644
--- a/jarvis/ui/desktop_app.py
+++ b/jarvis/ui/desktop_app.py
@@ -1044,7 +1044,7 @@ def webview_storage_dir(
if os.access(candidate, os.W_OK):
return candidate
except OSError:
- continue
+ continue # unwritable candidate — try the next; the caller warns when none is left
return None
diff --git a/jarvis/ui/web/marketplace_routes.py b/jarvis/ui/web/marketplace_routes.py
index ea43b4a394..daee39f75e 100644
--- a/jarvis/ui/web/marketplace_routes.py
+++ b/jarvis/ui/web/marketplace_routes.py
@@ -813,6 +813,7 @@ def _community_payload(
f"name {spec.id!r}"
)
except AgentPluginError as exc:
+ # Surfaced to the UI as an invalid entry carrying the reason.
plugins.append({**base, "valid": False, "error": str(exc)})
continue
item = spec.model_dump(mode="json")
@@ -1592,6 +1593,7 @@ def _describe_staged_plugin(staged_root: Path) -> dict[str, Any]:
# authority that check exists to deny.
spec = convert_manifest(plugin_json, mcp_json)
except AgentPluginError as exc:
+ # The dialog shows this as the single blocking problem — see docstring.
return {
"plugin": None,
"problems": [str(exc)],
diff --git a/jarvis/ui/web/wiki_routes.py b/jarvis/ui/web/wiki_routes.py
index 9905a2e614..9008ca639b 100644
--- a/jarvis/ui/web/wiki_routes.py
+++ b/jarvis/ui/web/wiki_routes.py
@@ -196,7 +196,7 @@ def _hub_slug(request: Request, known_slugs: set[str]) -> str | None:
try:
configured = getattr(config.memory.wiki.session_rollup, "user_entity_slug", "")
except AttributeError:
- configured = ""
+ configured = "" # no config or no wiki section on this app — the default slug applies
slug = resolve_user_entity_slug(configured)
return slug if slug in known_slugs else None