Skip to content

[Improve] Match Discord unmentioned thread replies to Slack gating#568

Merged
mrubens merged 2 commits into
developfrom
improve/discord-slack-style-unmentioned-gating-331ulqlc2lfwj
Jul 18, 2026
Merged

[Improve] Match Discord unmentioned thread replies to Slack gating#568
mrubens merged 2 commits into
developfrom
improve/discord-slack-style-unmentioned-gating-331ulqlc2lfwj

Conversation

@roomote-roomote

@roomote-roomote roomote-roomote Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Opened on behalf of Matt Rubens. Follow up by mentioning @roomote-roomote, in the web UI, or in Discord.

What changed

Discord task threads now use the same unmentioned follow-up rules as Slack:

  • Natural replies (no @mention) only work for people already in the conversation: the task owner, the thread starter, or someone who tagged Roomote earlier in the thread
  • If somebody else posts or is @mentioned after Roomote’s last reply, the next human message needs an @mention again
  • Roomote’s next reply reopens the no-mention window
  • Explicit @mentions, DMs, and /new stay on the normal entry path

The eligibility + interjection decision loop is shared across Slack, Discord, and Teams in apps/api/src/handlers/shared/unmentioned-thread-reply.ts. Provider modules only handle provider-specific preconditions, history mapping, and provider-specific side effects (Slack explicit-mention footer/redis flag). Public Discord docs were updated too.

Why this change was made

Discord previously treated every linked user’s unmentioned message in a known task thread as an agent turn. That made multi-person side chat hijack the task. Sharing the decision core keeps Slack/Discord/Teams from drifting.

Impact

In active Discord task threads, drive-by and multi-person chatter no longer becomes agent work unless you @mention Roomote. Solo task follow-ups keep working without a mention when you’re an eligible participant. Slack and Teams continue current behavior through the shared helper.

Apply Slack/Teams-style eligibility and interjection rules so natural
follow-ups in Discord task threads stop requiring drive-by side chat to
be treated as agent turns.
@roomote-roomote

roomote-roomote Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

No new code issues found. See task

Reviewed b8034fa

…Teams

Extract eligibility and interjection-window evaluation into a single pure
helper so the three providers stay behavior-aligned without duplicating
the decision loop.
@mrubens
mrubens marked this pull request as ready for review July 18, 2026 22:05
@mrubens
mrubens merged commit dc0a886 into develop Jul 18, 2026
27 of 28 checks passed
@mrubens
mrubens deleted the improve/discord-slack-style-unmentioned-gating-331ulqlc2lfwj branch July 18, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant