Files
hermes-agent/plugins
Teknium b3746e35dd fix(gateway): a voice clarify reply settles only the question it was checked against
Review of #152310 (blocking): _hm_clarify_reply checked the sender against the
session's oldest clarify, awaited transcription, then answered whichever clarify
was oldest by then. If Alice's question expired mid-transcription and Bob's turn
asked its own, Alice's transcript answered Bob's question unchecked. The reply now
resolves the checked clarify_id (clarify_gateway.attempt_text_response); if that
entry is gone, the transcript falls through as an ordinary message. Every other
answer path (relay, Telegram/Discord/Slack/WhatsApp Cloud/Feishu taps, typed
slash confirm) already resolves by exact id with no await between check and resolve.

P3s from the same review:
- Feishu HTTP-webhook card replies keep the refusal toast, as long-connection
  mode does (a refused tap answered {} before).
- _prompt_refused_to's string dispatch becomes two direct helpers.
- _request_slash_confirm reads event.sender_id(); the decline-fallback test
  now passes a real MessageEvent instead of a SimpleNamespace.

Co-authored-by: necoweb3 <65560494+necoweb3@users.noreply.github.com>
2026-11-09 17:07:28 -08:00
..
…