#10081: fix(mattermost): pass requireMentionOverride to core resolver
channel: mattermost
stale
Cluster:
Mattermost Mention Overrides Fixes
## Summary
When `account.requireMention` is set to `false` in config, the Mattermost monitor should pass this override to `resolveRequireMention()` so that channels configured with `requireMention: false` respond without needing an @mention.
## Problem
Without this fix, the account-level `requireMention` setting is ignored and the default (`true`) is used, requiring @mentions even when configured otherwise.
## Solution
Pass `requireMentionOverride: account.requireMention` to the `core.channel.groups.resolveRequireMention()` call.
## Testing
1. Configure Mattermost account with `requireMention: false`
2. Send a message in a channel without @mentioning the bot
3. Bot should respond (before this fix, it would not)
---
*Resubmission of #5068 rebased on latest main*
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the Mattermost monitor to pass the account-level `requireMention` setting through to `core.channel.groups.resolveRequireMention()`. This ensures group channels can respond without an @mention when `channels.mattermost.accounts.<id>.requireMention: false` is configured, aligning Mattermost with other monitors that already forward a mention override into the shared group-policy resolver.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- Change is a single-parameter pass-through in the Mattermost monitor, and the target resolver (`resolveChannelGroupRequireMention`) explicitly supports `requireMentionOverride` as an optional boolean. No other behavior is modified.
- No files require special attention
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#10587: fix(extensions/mattermost): pass requireMention override from chatm...
by baku4 · 2026-02-06
88.8%
#22075: mattermost: honor account requireMention override
by armindocachada · 2026-02-20
88.3%
#20051: fix(mattermost): fix chatmode: "onmessage" to work correctly in mat...
by RHesketh · 2026-02-18
83.7%
#12468: feat(mattermost): add read, search, and channel-list actions
by adamsbytes · 2026-02-09
77.6%
#14995: fix(mattermost): honor chatmode mention fallback in group mention g...
by ninjaa · 2026-02-12
75.1%
#16570: feat(mattermost): add replyToMode threading support
by FBartos · 2026-02-14
74.7%
#17081: fix(telegram): suppress file-size error replies in groups when bot ...
by p697 · 2026-02-15
74.5%
#16622: fix(mattermost): record pending history for messages dropped by gro...
by oskarmodig · 2026-02-14
74.4%
#7719: fix(slack): thread replies with @mentions dropped in requireMention...
by SocialNerd42069 · 2026-02-03
74.3%
#21108: slack: keep requireMention thread follow-ups when thread session is...
by JayElRay · 2026-02-19
74.0%