fix: direct user message on STT failure + hermes-agent-setup skill#1905
Merged
fix: direct user message on STT failure + hermes-agent-setup skill#1905
Conversation
added 3 commits
March 18, 2026 03:01
When a user sends a voice message and STT isn't configured, the gateway now sends a clear message directly to the user explaining how to set up voice transcription, rather than relying on the agent to relay an injected context note (which often gets misinterpreted). Also adds a hermes-agent-setup bundled skill covering STT/TTS setup, tool configuration, dependency installation, and troubleshooting.
Skill now covers full CLI usage (hermes setup, hermes skills, hermes tools, hermes config, session management, etc.), config file reference, and expanded gateway commands. Agent context notes for STT failure now mention the hermes-agent-setup skill is available to help users configure Hermes features.
Only mention the hermes-agent-setup skill in STT failure notes (both the direct user message and the agent context note) when the skill is actually installed. Uses _find_skill() from skill_manager_tool. Also confirmed: STT is the only user-facing failure case where the setup skill hint helps. Vision failures are transient API issues, runtime transcription errors indicate a configured-but-broken provider, and platform startup warnings are server logs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two changes to improve the voice message experience:
1. Direct user message on STT failure
When a user sends a voice message and STT isn't configured, the gateway previously injected a context note into the agent's prompt like
[can't listen to it right now~]. The agent often misinterpreted this, leading to confusing responses (e.g., explaining how to find the microphone button).Now the gateway sends a direct message to the user explaining:
/skill hermes-agent-setupfor full instructionsThe agent still gets the context note so it knows what happened.
2. hermes-agent-setup bundled skill
New built-in skill covering:
hermes tools)Test plan
python -m pytest tests/gateway/ -n0 -q— 1194 passed (2 pre-existing whatsapp failures)