#10587: fix(extensions/mattermost): pass requireMention override from chatmode config
channel: mattermost
stale
size: XS
Cluster:
Mattermost Mention Overrides Fixes
## Problem
`chatmode: "onmessage"` config doesn't work — bot still requires @mention in channels.
## Solution
Propagate `account.requireMention` to `resolveRequireMention()` so the chatmode setting is respected.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
- Fixes Mattermost mention-gating by passing the account-level `requireMention` (derived from `chatmode`) into `core.channel.groups.resolveRequireMention`.
- This makes `chatmode: "onmessage"` correctly disable the “must @mention the bot in channels” requirement.
- Change is localized to inbound message handling in `extensions/mattermost/src/mattermost/monitor.ts` and uses the existing `requireMentionOverride` hook in core group-policy resolution.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk.
- The change is a single-parameter propagation into an existing core API (`requireMentionOverride`) and matches the expected type/semantics, making Mattermost `chatmode` correctly affect mention gating in channels without altering unrelated routing or dispatch logic.
- extensions/mattermost/src/mattermost/monitor.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#10081: fix(mattermost): pass requireMentionOverride to core resolver
by manchmod · 2026-02-06
88.8%
#22075: mattermost: honor account requireMention override
by armindocachada · 2026-02-20
86.9%
#20051: fix(mattermost): fix chatmode: "onmessage" to work correctly in mat...
by RHesketh · 2026-02-18
84.9%
#16570: feat(mattermost): add replyToMode threading support
by FBartos · 2026-02-14
78.7%
#12468: feat(mattermost): add read, search, and channel-list actions
by adamsbytes · 2026-02-09
78.3%
#14995: fix(mattermost): honor chatmode mention fallback in group mention g...
by ninjaa · 2026-02-12
76.9%
#2300: fix(mattermost): ensure replies create threads in channels
by blizzy78 · 2026-01-26
76.4%
#7719: fix(slack): thread replies with @mentions dropped in requireMention...
by SocialNerd42069 · 2026-02-03
76.0%
#21108: slack: keep requireMention thread follow-ups when thread session is...
by JayElRay · 2026-02-19
75.8%
#13430: fix(discord): properly handle bot-sent @everyone mentions
by wassimbensalem · 2026-02-10
75.2%