test(voice): clarify install guidance and local skips

Add an explicit messaging-extra install hint to the missing PyNaCl/davey error path, cover it with a voice-channel join regression test, and skip the low-level NaCl packet tests when PyNaCl is not installed locally.
This commit is contained in:
teknium1 2026-03-15 05:24:34 -07:00
parent 5f32fd8b6d
commit 2d57946ee9
2 changed files with 33 additions and 4 deletions

View file

@ -2437,7 +2437,11 @@ class GatewayRunner:
adapter._voice_input_callback = None
err_lower = str(e).lower()
if "pynacl" in err_lower or "nacl" in err_lower or "davey" in err_lower:
return "Voice dependencies are missing (PyNaCl / davey). Please reinstall Hermes with voice support enabled."
return (
"Voice dependencies are missing (PyNaCl / davey). "
"Install or reinstall Hermes with the messaging extra, e.g. "
"`pip install hermes-agent[messaging]`."
)
return f"Failed to join voice channel: {e}"
if success: