Skip to content

Fix Telegram voice replies during clarify - #31525

Closed
baumar73 wants to merge 1 commit into
NousResearch:mainfrom
baumar73:fix/telegram-voice-clarify-20260524
Closed

baumar73 wants to merge 1 commit into
NousResearch:mainfrom
baumar73:fix/telegram-voice-clarify-20260524

Conversation

@baumar73

Copy link
Copy Markdown

Fixes Telegram voice/media replies to pending clarify prompts by preparing media text before falling through to interruption handling.

Tests:

  • pytest tests/gateway/test_telegram_audio_vs_voice.py -q
  • pytest tests/gateway/test_telegram_clarify_buttons.py -q
  • py_compile gateway/run.py

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/gateway Gateway runner, session dispatch, delivery platform/telegram Telegram bot adapter labels May 24, 2026
@Morad37

Morad37 commented May 24, 2026

Copy link
Copy Markdown
Contributor

Makes sense. The clarify flow for voice/audio was the one input path that bypassed _prepare_inbound_message_text when a clarify was pending, so voice replies were silently dropped instead of being transcribed and delivered as answers. The early-return structure (check pending clarify before slash commands) is the right place to hook this in.

The test covers the real scenario well: place a clarify, send a voice reply, verify the clarify resolves instead of a new run starting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/telegram Telegram bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants