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: 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.pyindex 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_mtimeexcept 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.pyindex 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 Trueexcept (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 blobreturn Truediff --git a/jarvis/brain/model_catalog.py b/jarvis/brain/model_catalog.pyindex 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 blockif prompt < 0 or completion < 0:return Nonereturn (prompt * 1_000_000, completion * 1_000_000)diff --git a/jarvis/brain/modes.py b/jarvis/brain/modes.pyindex 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 foundfor 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 Nonefor 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 mattersraise@@ -560,7 +563,7 @@ def delete_mode(slug: str) -> bool:_mode_path(safe_slug).unlink()removed = Trueexcept FileNotFoundError:- removed = False+ removed = False # idempotent: nothing to delete is a "no", not an errorexcept 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 Trueexcept FileNotFoundError:- return False+ return False # no user copy to drop — the packaged version already appliesexcept OSError as exc:raise ModeError(f"Could not restore {safe_slug!r}: {exc}") from excdiff --git a/jarvis/cli_ctl/commands/marketplace.py b/jarvis/cli_ctl/commands/marketplace.pyindex 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" belowstate = 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")breakexcept ApiError:- pass+ pass # listing is best-effort — status stays "unknown" and the user is told to connectif status == "connected":_field("Status", "connected and usable")else:diff --git a/jarvis/marketplace/community_install.py b/jarvis/marketplace/community_install.pyindex 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 rawlogger.warning("plugin catalog override has no plugins list — rebuilding")except FileNotFoundError:- pass+ pass # no override file yet — a fresh skeleton is built belowexcept (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.pyindex 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 indexexcept (OSError, ValueError, KeyError, ValidationError) as exc:logger.warning("community index: unreadable cache (%s) — refetching", exc)return Nonediff --git a/jarvis/plugins/tool/assistant_mode.py b/jarvis/plugins/tool/assistant_mode.pyindex 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.pyindex 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.pyindex 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]]:continuetry:re.compile(pattern)- except re.error:+ except re.error as exc:+ _LOG.debug(+ "creator: dropped voice trigger with invalid regex %r (%s)", pattern, exc+ )continuetrig: 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)returnfor label, resolver in (diff --git a/jarvis/skills/origin.py b/jarvis/skills/origin.pyindex 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 marketplaceexcept (OSError, ValueError) as exc:log.debug("skill origin receipt unreadable at %s: %s", path, exc)return Nonediff --git a/jarvis/ui/desktop_app.py b/jarvis/ui/desktop_app.pyindex 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 candidateexcept OSError:- continue+ continue # unwritable candidate — try the next; the caller warns when none is leftreturn Nonediff --git a/jarvis/ui/web/marketplace_routes.py b/jarvis/ui/web/marketplace_routes.pyindex 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)})continueitem = 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.pyindex 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 appliesslug = resolve_user_entity_slug(configured)return slug if slug in known_slugs else None