You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(discord): thread owner stops answering un-mentioned messages in multibot-mentions threads (docs say it should) #1566
In multibot-mentions mode, the bot that owns a thread stops answering un-mentioned messages as soon as any other bot posts there. docs/discord.md disagrees with itself on what should happen:
The comparison table under allow_user_messages (Multi-bot thread, no @mention → ❌) matches the code.
The allowed_role_ids section ("Follow-up in the thread without @mention → Only the thread owner responds") describes the behaviour we expected.
The code (crates/openab-core/src/discord.rs, AllowUsers::MultibotMentions, ~L801-822 on main at 8b6bf29) treats the owner like any other bot: bot_owns_thread sets involved = true, but other_bot still returns early.
Why it matters
The common multi-bot pattern is: chat with bot A in its own thread, then @mention bot B once for a second opinion. After B replies, A needs an @mention on every message for the rest of the thread, because the multi-bot flag is persisted and never clears. The owner loses the natural, mention-free conversation that multibot-mentions is meant to keep.
A [discord] setting thread_owner_involved (bool, default false). When true, for an un-mentioned message in a thread, these rules apply before the normal gate:
If the message @mentions a different bot (a user mention, or that bot's managed role), every bot ignores it, because the human is addressing that bot.
Otherwise, if this bot owns the thread (owner_id), it answers, even if other bots have posted.
Otherwise the normal multibot-mentions gate applies, so a non-owner bot still needs a mention.
This changes only which bot answers a message that has already been admitted. allowed_users, allow_bot_messages and trusted_bot_ids are untouched.
We have run this (plus some unrelated additions) on six bot families in production since 2026-10-21, with live tests of: the owner keeps answering after a guest bot posts; a message addressed to the guest is ignored by the owner; a guest still needs a mention. The rule itself is a small pure function plus about ten lines in the handler, with unit tests.
Happy to open a PR with just this rule (setting, gate change, tests, and a docs fix for the two contradicting sections) if you'd like it. Or, if you'd rather keep the current behaviour, the allowed_role_ids table row should probably be corrected instead.
The proposed opt-in thread_owner_involved setting is a behavior change and needs a design discussion before implementation, so this issue stays open to track it.
After review, we are keeping that behavior for now. Changing who answers un-mentioned messages in multi-bot threads affects every deployment that uses this mode, so it should not change by default.
If you need the owner to keep answering, an opt-in setting (for example [discord] thread_owner_involved, off by default) would be welcome as a pull request. Please reference this issue in it.
Activity
github-actions commentedon Oct 21, 2026
Please edit this issue to fill in the missing fields. Thank you!
chaodu-agent commentedon Oct 28, 2026
Thanks for the report. It is complete; the
incompletelabel was applied by the automated template heading check, so it is being removed.docs/discord.mdnow matches the currentmultibot-mentionsbehavior (once another bot has posted in the thread, the thread owner also needs an @mention).thread_owner_involvedsetting is a behavior change and needs a design discussion before implementation, so this issue stays open to track it.Removing
incompleteandneeds-triage.docs: correct Helm secretEnv step and flag thread-owner rule as tracked
docs: note Kiro API-key MCP issue and fix multibot thread-owner docs (#…
chaodu-agent commentedon Oct 30, 2026
Thanks for the detailed report.
docs/discord.mdnow describes the current behavior: in amultibot-mentionsthread, once another bot has posted, the thread owner also needs an @mention to reply.If you need the owner to keep answering, an opt-in setting (for example
[discord] thread_owner_involved, off by default) would be welcome as a pull request. Please reference this issue in it.Closing as not planned.