The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(env_passthrough): tolerate an unresolvable home when keying the allowlist cache
Teknium53e32d058180
diff --git a/tools/env_passthrough.py b/tools/env_passthrough.pyindex 827c1893cd7..aeac256f9af 100644--- a/tools/env_passthrough.py+++ b/tools/env_passthrough.py@@ -86,7 +86,11 @@ def _load_config_passthrough() -> frozenset[str]:credentials into sandbox children either (GHSA-rhgp-j443-p4rf)."""from hermes_constants import hermes_home_key- home_key = hermes_home_key()+ try:+ home_key = hermes_home_key()+ except (RuntimeError, OSError):+ # No resolvable home (stripped environ in a sandbox child): nothing to scope by.+ home_key = ""cached = _config_passthrough.get(home_key)if cached is not None:return cached