The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(web): resolve a managed image row's GUI model catalog from its backend so the Krea row lists Krea models
Mariano Nicolini07753067ccfb
diff --git a/hermes_cli/web_routers/tools.py b/hermes_cli/web_routers/tools.pyindex a9e586d0510..6dea9ddcf1f 100644--- a/hermes_cli/web_routers/tools.py+++ b/hermes_cli/web_routers/tools.py@@ -149,12 +149,10 @@ def _resolve_toolset_model_plugin(ts_key: str, provider_row: dict) -> Optional[s"""Map a provider picker row to its model-catalog plugin name.Plugin-backed rows carry ``image_gen_plugin_name`` / ``video_gen_plugin_name``;- the managed "Nous Subscription" image row instead carries the legacy- ``imagegen_backend: "fal"`` marker (same underlying FAL catalog).+ a managed image row's ``imagegen_backend`` names its catalog plugin."""if ts_key == "image_gen":- return provider_row.get("image_gen_plugin_name") or (- "fal" if provider_row.get("imagegen_backend") else None)+ return provider_row.get("image_gen_plugin_name") or provider_row.get("imagegen_backend")if ts_key == "video_gen":return provider_row.get("video_gen_plugin_name")return Nonediff --git a/tests/hermes_cli/test_tools_config.py b/tests/hermes_cli/test_tools_config.pyindex 82839a63a17..f1be8b6787b 100644--- a/tests/hermes_cli/test_tools_config.py+++ b/tests/hermes_cli/test_tools_config.py@@ -977,6 +977,13 @@ def test_visible_providers_reuses_pool_video_feature_snapshot(monkeypatch):+def test_gui_model_catalog_follows_each_managed_image_row_backend():+ from hermes_cli.web_routers.tools import _resolve_toolset_model_plugin++ assert _resolve_toolset_model_plugin("image_gen", _image_gen_row("krea")) == "krea"+ assert _resolve_toolset_model_plugin("image_gen", _image_gen_row("fal")) == "fal"++# ── Windows console-flash guard for post-setup subprocess spawns ──────────────## The desktop GUI runs post-setup hooks through a detached, console-less