fix(discord): add config-backed auto-thread channels - #54285
fix(discord): add config-backed auto-thread channels#54285jeeves-assistant wants to merge 53 commits into
Conversation
Duplicate of #49726 — verified same mechanism: this adds a |
|
Updated this PR so it no longer carries the Rob-specific/env-only |
…o-thread-channels # Conflicts: # plugins/platforms/discord/adapter.py
…nels' into fix/discord-force-auto-thread-channels
…o-thread-channels
…o-thread-channels
…o-thread-channels
…o-thread-channels
…o-thread-channels # Conflicts: # plugins/platforms/discord/adapter.py
…o-thread-channels
…o-thread-channels # Conflicts: # tests/gateway/test_discord_channel_controls.py
…o-thread-channels # Conflicts: # plugins/platforms/discord/adapter.py
…o-thread-channels
Related to #49726, but not a duplicate after the update: this branch now implements the config-first |
…o-thread-channels
fix(discord): add config-backed auto-thread channels
|
Summary
DISCORD_FORCE_AUTO_THREAD_CHANNELSpatch into the config-first shape proposed by fix: restored Discord free-response auto-thread override #27651:discord.auto_thread_channels/DISCORD_AUTO_THREAD_CHANNELS.discord.free_response_channelsto still auto-create per-conversation threads for top-level posts.discord.no_thread_channelsas the stronger hard opt-out.plugins/platforms/discord/adapter.py), adds default config/example/docs coverage, and documents the relation to free-response auto-threading.mainafter the Discord channel-key matching changes;auto_thread_channelsnow participates in the same ID/name/#namekey matching path as the other Discord channel gates.Relationship to #27651
This PR is intentionally the current-codebase port/synthesis of the older #27651 idea. #27651 had the better API shape (
discord.auto_thread_channels) but targeted stale Discord paths; this branch now applies that design to the current plugin implementation.Tests
python -m py_compile plugins/platforms/discord/adapter.py hermes_cli/config.pypython -m pytest tests/gateway/test_discord_channel_controls.py tests/gateway/test_discord_free_response.py tests/gateway/test_discord_slash_auth.py -q -o 'addopts='python -m pytest tests/gateway/test_discord_edit_message_overflow.py tests/gateway/test_discord_pending_text_batch_shutdown.py tests/gateway/test_typing_indicator_toggle.py -q -o 'addopts='git diff --check