Skip to content

The agent that grows with you

fix(model_switch): authenticated-slug lookup is cache-only

kshitijk4poor9e0aba49dd04
diff --git a/hermes_cli/model_switch.py b/hermes_cli/model_switch.py
index f00d36d3c53..b8057addaa6 100644
--- a/hermes_cli/model_switch.py
+++ b/hermes_cli/model_switch.py
@@ -788,11 +788,12 @@ def resolve_alias(raw_input: str, current_provider: str) -> Optional[tuple[str,
def get_authenticated_provider_slugs(
current_provider: str = "", user_providers: dict = None, custom_providers: list | None = None
) -> list[str]:
- """Slugs of providers that have credentials (models.dev in-memory cache; no extra network cost)."""
+ """Slugs of providers that have credentials (models.dev in-memory cache + disk catalog cache;
+ stale catalogs warm in the background, never in this call)."""
try:
return [p["slug"] for p in list_authenticated_providers(
current_provider=current_provider, user_providers=user_providers,
- custom_providers=custom_providers, max_models=0)]
+ custom_providers=custom_providers, max_models=0, non_blocking_catalogs=True)]
except Exception:
return []