The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(skills): route the ClawHub owner lookup through the hub connection pool
kshitijk4poor4036ba8c17b5
diff --git a/tests/hermes_cli/test_skills_hub.py b/tests/hermes_cli/test_skills_hub.pyindex 5667360ab3a..e46612c6388 100644--- a/tests/hermes_cli/test_skills_hub.py+++ b/tests/hermes_cli/test_skills_hub.py@@ -290,6 +290,7 @@ def test_inspect_reuses_one_ssrf_safe_client_for_metadata_and_bundle(monkeypatchimport hermes_cli.skills_hub as cli_hubimport tools.skills_hub as hubimport tools.skills_hub_search as search+ import tools.skills_hub_clawhub as clawhubfrom tools.skills_hub_models import SkillBundle, SkillMetaclients = []@@ -319,6 +320,8 @@ def test_inspect_reuses_one_ssrf_safe_client_for_metadata_and_bundle(monkeypatchhub._guarded_http_get("https://example.com/metadata")# The Hermes-index fetch must ride the same pool (no cache → real GET).assert search._load_hermes_index() == {"skills": []}+ # The ClawHub owner lookup must ride the same pool too.+ assert clawhub.ClawHubSource()._fetch_owner_handle("slug") is Nonereturn SkillMeta("example", "metadata", "test", "example/id", "community")def fetch(self, _identifier):diff --git a/tools/skills_hub_clawhub.py b/tools/skills_hub_clawhub.pyindex cec319c5137..50f8ad07dcc 100644--- a/tools/skills_hub_clawhub.py+++ b/tools/skills_hub_clawhub.py@@ -13,7 +13,7 @@ from agent.retry_utils import parse_retry_after_secondsfrom tools.skills_hub import _guarded_http_streamfrom tools.skills_hub_models import (GuardedFetchMixin, SkillBundle, SkillMeta, SkillSource, _cache_metas, _cached_metas, _get_json,- _validate_bundle_rel_path,+ _validate_bundle_rel_path, hub,)logger = logging.getLogger("tools.skills_hub")@@ -381,7 +381,7 @@ class ClawHubSource(GuardedFetchMixin, SkillSource):for attempt in range(max_attempts):delay = 2.0 * (2 ** attempt)try:- resp = httpx.get(url, timeout=20)+ resp = hub()._skills_hub_http_get(url, timeout=20)except (httpx.HTTPError, OSError):reason = "transport error"else: