Skip to content

fix(discord): preserve voice reply threading - #68733

Closed
ooiuuii wants to merge 1 commit into
NousResearch:mainfrom
ooiuuii:fix/discord-voice-reply-threading
Closed

ooiuuii wants to merge 1 commit into
NousResearch:mainfrom
ooiuuii:fix/discord-voice-reply-threading

Conversation

@ooiuuii

@ooiuuii ooiuuii commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Preserves Discord reply threading for voice responses in both delivery paths:

  • adds the resolved message reference to native voice-message REST payloads
  • forwards the same reference through the file-upload fallback
  • honors reply_to_mode = "off" and missing reply targets
  • retains the existing reference-free retry for invalid or deleted references

Related Issue

Fixes #68728

Type of Change

  • Bug fix
  • Tests

How Has This Been Tested?

  • pytest tests/gateway/test_discord_send.py -q (22 passed)
  • ruff check hermes_cli/gateway/platforms/discord/adapter.py tests/gateway/test_discord_send.py
  • git diff --check

Focused regression coverage verifies the native payload, fallback upload, disabled reply mode, and missing-target behavior.

Checklist

  • I have performed a self-review of my code
  • I have added tests that prove the fix is effective
  • New and existing focused tests pass locally

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/plugins Plugin system and bundled plugins platform/discord Discord bot adapter needs-decision Awaiting maintainer decision before any implementation labels Jul 21, 2026
@teknium1

Copy link
Copy Markdown
Collaborator

Merged into main via consolidated salvage PR #73517 (merge b8c38a451a). Your message_reference preservation on voice replies (both send paths) was cherry-picked with your authorship.

Your contribution is credited to you in git history. Thank you! Closing this PR as merged-via-salvage.

@teknium1 teknium1 closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins needs-decision Awaiting maintainer decision before any implementation P3 Low — cosmetic, nice to have platform/discord Discord bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Discord voice replies drop their message reference

3 participants