From 15a22218d0cebea32fad4cf7a495105fbf89e161 Mon Sep 17 00:00:00 2001 From: Joseph Turian Date: Thu, 26 Feb 2026 03:52:36 -0500 Subject: [PATCH] Mattermost: simplify mention gate decision usage --- extensions/mattermost/src/mattermost/monitor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/mattermost/src/mattermost/monitor.ts b/extensions/mattermost/src/mattermost/monitor.ts index 413c5de0794..3a0241c84f8 100644 --- a/extensions/mattermost/src/mattermost/monitor.ts +++ b/extensions/mattermost/src/mattermost/monitor.ts @@ -814,7 +814,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {} oncharTriggered, canDetectMention, }); - const { shouldRequireMention, shouldBypassMention, effectiveWasMentioned } = mentionDecision; + const { shouldRequireMention, shouldBypassMention } = mentionDecision; if (mentionDecision.dropReason === "onchar-not-triggered") { logVerboseMessage( @@ -943,7 +943,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {} ReplyToId: threadRootId, MessageThreadId: threadRootId, Timestamp: typeof post.create_at === "number" ? post.create_at : undefined, - WasMentioned: kind !== "direct" ? effectiveWasMentioned : undefined, + WasMentioned: kind !== "direct" ? mentionDecision.effectiveWasMentioned : undefined, CommandAuthorized: commandAuthorized, OriginatingChannel: "mattermost" as const, OriginatingTo: to,