refactor(agent/G_small): second code pass — merged guards, table-driven compact display, joined wrapped calls

This commit is contained in:
Teknium
2026-09-02 18:51:24 -07:00
parent e27609e18e
commit d038249b12
12 changed files with 59 additions and 98 deletions
+2 -2
View File
@@ -113,8 +113,8 @@ def _side_question_task_config() -> Dict[str, Any]:
cfg = load_config_readonly()
except Exception:
return {}
aux = cfg.get("auxiliary", {}) if isinstance(cfg.get("auxiliary"), dict) else {}
task = aux.get(SIDE_QUESTION_TASK, {})
aux = cfg.get("auxiliary")
task = aux.get(SIDE_QUESTION_TASK) if isinstance(aux, dict) else None
return task if isinstance(task, dict) else {}