1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 --- title: "Slack requireMention: true Is Bypassed for Thread Replies After Prior Bot Participation" date: 2026-03-25 description: "OpenClaw replies to untagged messages in Slack threads after it has previously participated in that thread, bypassing the requireMention setting." tags: ["bug", "bug:behavior", "slack", "mention-gating", "thread-participation"] sources: - platform: "GitHub Issue" id: "openclaw#64277" url: "https://github.com/openclaw/openclaw/issues/64277" openclaw_version: "2026.3.23-2" --- ## Symptom When a Slack channel is configured with `requireMention: true`, OpenClaw should only reply when explicitly mentioned in a message. However, users observe that: - OpenClaw correctly replies when the bot is explicitly mentioned in a thread - After OpenClaw has replied once in a thread, **subsequent messages in the same thread trigger responses even without mentioning the bot** - This behavior creates unnecessary noise in Slack threads as the bot responds to messages where it was not tagged ### Steps to Reproduce 1. Configure a Slack channel with `requireMention: true` 2. Start a thread and explicitly mention the bot in the first message 3. Wait for OpenClaw to reply 4. Send another reply in the same thread **without** mentioning the bot 5. Observe that OpenClaw still replies despite not being mentioned ## Root Cause Analysis The issue stems from how OpenClaw determines whether it has been "implicitly mentioned" in a thread. The code in the Slack integration treats thread participation as an implicit mention, which bypasses the `requireMention` gating. ### Code Flow Analysis **1. Implicit Mention Detection:** ```javascript const implicitMention = Boolean( !isDirectMessage && ctx.botUserId && message.thread_ts && ( message.parent_user_id === ctx.botUserId || hasSlackThreadParticipation(account.accountId, message.channel, message.thread_ts) ) ); 2. Mention Gate Resolution:
...