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(agent-chat): read agy's effort ladder only when agy is installed

rubenluetke10-beepdc92073c86ed
diff --git a/jarvis/agent_chat/runner_cli.py b/jarvis/agent_chat/runner_cli.py
index 5996ff5cca..b8b6cbc726 100644
--- a/jarvis/agent_chat/runner_cli.py
+++ b/jarvis/agent_chat/runner_cli.py
@@ -2959,7 +2959,11 @@ async def run_cli_turn(
def _agy_effective_effort(model: str, effort: str) -> str:
"""The ``--effort`` value agy is launched with for ``model`` + ``effort``."""
- args = agy_model_args(model, effort, _agy_catalog_cached())
+ try:
+ rows = _agy_catalog_cached()
+ except CliUnavailable: # agy is missing: the planner reports that right after this
+ rows = None
+ args = agy_model_args(model, effort, rows)
return args[args.index("--effort") + 1] if "--effort" in args else ""