Problem
Group DMs (channel_type: mpim) are treated identically to 1:1 DMs in the Slack adapter's message handler. The bot responds to every message in the group DM, which is noisy and distracting in multi-person conversations.
Root cause: gateway/platforms/slack.py line ~1007:
is_dm = channel_type in ("im", "mpim")
The require_mention gating at line ~1031 only applies when not is_dm, so group DMs bypass it entirely.
Expected behavior
Group DMs should respect require_mention (or a separate mpim_require_mention config), so the bot only responds when explicitly @mentioned — same as channels.
1:1 DMs should continue to respond to every message (current behavior is correct there).
Suggested approach
Either:
- Treat
mpim as a channel for mention-gating purposes (simplest)
- Add a
mpim_require_mention config key (more granular, lets users choose)
Option 2 is probably better since some users may want the current behavior in small group DMs.
Problem
Group DMs (
channel_type: mpim) are treated identically to 1:1 DMs in the Slack adapter's message handler. The bot responds to every message in the group DM, which is noisy and distracting in multi-person conversations.Root cause:
gateway/platforms/slack.pyline ~1007:The
require_mentiongating at line ~1031 only applies whennot is_dm, so group DMs bypass it entirely.Expected behavior
Group DMs should respect
require_mention(or a separatempim_require_mentionconfig), so the bot only responds when explicitly @mentioned — same as channels.1:1 DMs should continue to respond to every message (current behavior is correct there).
Suggested approach
Either:
mpimas a channel for mention-gating purposes (simplest)mpim_require_mentionconfig key (more granular, lets users choose)Option 2 is probably better since some users may want the current behavior in small group DMs.