Skip to content

fix(discord): auto-thread reply messages - #80658

Open
DaAwesomeRazor wants to merge 1 commit into
NousResearch:mainfrom
DaAwesomeRazor:fix/discord-reply-thread
Open

fix(discord): auto-thread reply messages#80658
DaAwesomeRazor wants to merge 1 commit into
NousResearch:mainfrom
DaAwesomeRazor:fix/discord-reply-thread

Conversation

@DaAwesomeRazor

Copy link
Copy Markdown

Summary

  • remove the Discord reply-message exception from auto-thread routing
  • route eligible quote replies into a newly created thread like other parent-channel requests
  • replace the old inline-reply expectation with a regression test asserting thread-scoped dispatch

Root cause

DiscordAdapter._handle_message() explicitly excluded discord.MessageType.reply from auto-thread creation, so reply messages were dispatched in the parent channel even when discord.auto_thread was enabled.

Test plan

  • scripts/run_tests.sh tests/gateway/test_discord_free_response.py::test_discord_reply_message_auto_threads_when_channel_is_eligible -v
  • scripts/run_tests.sh tests/gateway/test_discord_free_response.py tests/gateway/test_discord_channel_controls.py tests/gateway/test_discord_double_dispatch.py tests/gateway/test_discord_reply_mode.py tests/gateway/test_discord_slash_commands.py tests/e2e/test_discord_adapter.py -v (65 passed)
  • scripts/run_tests.sh tests/gateway/test_discord_*.py (223 passed)

@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 sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages labels Aug 7, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Related: #68941 also changes reply auto-thread behavior, but keeps replies without an explicit mention inline. This focused PR routes every otherwise eligible reply through the configured auto-thread path.

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 P3 Low — cosmetic, nice to have platform/discord Discord bot adapter sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants