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(tasks): a two-provider failure names both providers in last_error
rubenluetke10-beep2048ef0efaf4
diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.pyindex 0ce93f2988..72cca61536 100644--- a/jarvis/brain/manager.py+++ b/jarvis/brain/manager.py@@ -12871,8 +12871,13 @@ _TASK_FALLBACK_ORDER: tuple[str, ...] = (def _short_provider_error(exc: Exception) -> str:"""One readable line for ``last_error`` / the fallback summary — theexception class and the first 160 characters of its message."""- msg = " ".join(str(exc).split())- return f"{type(exc).__name__}: {msg[:160]}" if msg else type(exc).__name__+ from jarvis.tasks.runner import readable_error++ # The same code + human-message extraction the Runs tab uses, so a+ # two-provider failure reads "openrouter: 402 — Insufficient credits…;+ # gemini: 429 — You exceeded your current quota…" and not two dumped+ # JSON bodies of which only the first survives the length cap.+ return readable_error(exc)[:160]def _is_rate_limit_exc(exc: Exception) -> bool:diff --git a/jarvis/tasks/runner.py b/jarvis/tasks/runner.pyindex 3f0d0cbc1d..63e0062376 100644--- a/jarvis/tasks/runner.py+++ b/jarvis/tasks/runner.py@@ -642,6 +642,10 @@ def readable_error(exc: BaseException) -> str:name = type(exc).__name__if not raw:return name+ if raw.startswith("all brain providers failed"):+ # Already one readable line per provider — extracting the first+ # code/message would silently drop every provider after it.+ return f"{name}: {raw}"[:_LAST_ERROR_MAX_CHARS]code = _ERROR_CODE_RE.search(raw)message = _ERROR_MESSAGE_RE.search(raw)if message: