Skip to content

fix: prevent Discord active thread bot from hijacking other bot mentions#174

Merged
LIU9293 merged 5 commits intomainfrom
feat/discord-thread-bot-mention-177225
Feb 28, 2026
Merged

fix: prevent Discord active thread bot from hijacking other bot mentions#174
LIU9293 merged 5 commits intomainfrom
feat/discord-thread-bot-mention-177225

Conversation

@LIU9293
Copy link
Contributor

@LIU9293 LIU9293 commented Feb 28, 2026

Summary

  • add a Discord-side guard that drops thread messages when they mention a bot but do not mention the current runtime bot
  • run this guard before active-thread fallback routing so @bot B no longer gets answered by bot A only because bot A was previously active
  • keep existing active-thread behavior for plain follow-up messages without explicit bot mentions

Validation

  • bun test packages/ims/discord

@LIU9293 LIU9293 merged commit 8d5858a into main Feb 28, 2026
2 checks passed
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