Skip to content

The agent that grows with you

fix(buzz): run the buzz CLI from the scrubbed child env

John Paul Solivaf9d403472f0d
diff --git a/plugins/platforms/buzz/adapter.py b/plugins/platforms/buzz/adapter.py
index 548bdae8143..6b3275a18e7 100644
--- a/plugins/platforms/buzz/adapter.py
+++ b/plugins/platforms/buzz/adapter.py
@@ -392,7 +392,8 @@ async def _exec_buzz(
input_text: Optional[str] = None, timeout: float = _CLI_TIMEOUT,
) -> Tuple[int, str, str]:
"""Run the buzz CLI (argv, never a shell) -> ``(rc, stdout, stderr)``. Key travels via env only."""
- env = os.environ.copy()
+ from tools.environments.local import hermes_subprocess_env
+ env = hermes_subprocess_env() # a third-party CLI: its own key only, never Hermes' credentials
env["BUZZ_RELAY_URL"] = relay_url
env["BUZZ_PRIVATE_KEY"] = private_key
env.pop("BUZZ_AUTH_TAG", None)