Skip to content

fix(discord): decouple free_response_channels from auto_thread suppression - #31852

Closed
Shalmus wants to merge 1 commit into
NousResearch:mainfrom
Shalmus:fix/discord-auto-thread-free-response-channels
Closed

fix(discord): decouple free_response_channels from auto_thread suppression#31852
Shalmus wants to merge 1 commit into
NousResearch:mainfrom
Shalmus:fix/discord-auto-thread-free-response-channels

Conversation

@Shalmus

@Shalmus Shalmus commented May 25, 2026

Copy link
Copy Markdown

What

free_response_channels controls whether @mention is required for the bot to respond in a channel. It was incorrectly OR'd into skip_thread, which suppressed auto-threading in any channel configured as a free-response channel.

The bug

# Before — conflation of two unrelated concerns:
skip_thread = bool(channel_ids & no_thread_channels) or is_free_channel

A channel listed in free_response_channels (no @mention required) would silently lose auto-threading. DISCORD_NO_THREAD_CHANNELS already exists as the dedicated mechanism for disabling auto-threading.

The fix

# After — only no_thread_channels controls threading:
skip_thread = bool(channel_ids & no_thread_channels)

Context

I'm a Hermes user, not a developer. Hermes (the agent) helped me diagnose this when I noticed conversations in my free-response channels weren't auto-threading. The root cause was traced to this single line conflating mention-gating with thread creation.

— Submitted by Shalmus with assistance from Hermes Agent

…ssion

free_response_channels controls whether @mention is required to respond.
It was incorrectly OR'd into skip_thread, which disabled auto-threading
in any channel that was configured as a free-response channel.

DISCORD_NO_THREAD_CHANNELS is the dedicated mechanism for disabling
auto-threading in specific channels. This fix removes the conflation
so free_response_channels only affects mention-gating as intended.
@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery platform/discord Discord bot adapter P2 Medium — degraded but workaround exists labels May 25, 2026
@Shalmus Shalmus closed this Jun 12, 2026
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/discord Discord bot adapter type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants