The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(auth): per-home alias reads drop the blind catch; cost test warms the home
Teknium3c36ea5f6212
diff --git a/hermes_cli/models_catalog_static.py b/hermes_cli/models_catalog_static.pyindex ec7dced0518..34f15d2e958 100644--- a/hermes_cli/models_catalog_static.py+++ b/hermes_cli/models_catalog_static.py@@ -521,16 +521,12 @@ class _CatalogAliases(dict):_memo: tuple[tuple, dict[str, str]] = ((), {})def _plugin_aliases(self) -> dict[str, str]:- try:- from providers import bound_registry_key, list_providers- token = bound_registry_key()- if self._memo[0] == token:- return self._memo[1]- profiles = list_providers()- except Exception:- return {}+ from providers import bound_registry_key, list_providers+ token = bound_registry_key()+ if self._memo[0] == token:+ return self._memo[1]found: dict[str, str] = {}- for pp in profiles:+ for pp in list_providers():if pp.catalog_aliases and pp.name not in _BUILTIN_SLUGS:for alias in pp.aliases:if not dict.__contains__(self, alias):diff --git a/tests/hermes_cli/test_provider_normalize_cost.py b/tests/hermes_cli/test_provider_normalize_cost.pyindex 31ca1ecdf9f..08b4ff0169e 100644--- a/tests/hermes_cli/test_provider_normalize_cost.py+++ b/tests/hermes_cli/test_provider_normalize_cost.py@@ -49,7 +49,10 @@ def test_overlay_names_still_resolve_through_profiles(counted_profiles):def test_registry_wide_alias_check_reads_profiles_once(counted_profiles):+ from hermes_cli.auth import PROVIDER_REGISTRYfrom hermes_cli.providers import _lossy_alias_registry_pdef+ PROVIDER_REGISTRY.get("kimi-coding") # a home's first registry read mirrors its plugin scan, once+ counted_profiles.clear()assert _lossy_alias_registry_pdef("kimi-coding", "kimi-for-coding") is not Noneassert len(counted_profiles) == 1