openclaw - 💡(How to fix) Fix Slack: implicit reply-to-bot thread detection not working in channels (groupPolicy: open) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#44483Fetched 2026-04-08 00:46:19
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0

Thread replies to bot messages in Slack channels are silently dropped by the mention gate, even though the docs state that "replying to a bot message counts as an implicit mention."

Root Cause

Thread replies to bot messages in Slack channels are silently dropped by the mention gate, even though the docs state that "replying to a bot message counts as an implicit mention."

Fix Action

Workaround

Currently polling threads manually via message.read with threadId after responding in channels.

RAW_BUFFERClick to expand / collapse

Description

Thread replies to bot messages in Slack channels are silently dropped by the mention gate, even though the docs state that "replying to a bot message counts as an implicit mention."

Environment

  • OpenClaw version: 2026.3.7 (42a1394)
  • Slack mode: Socket Mode
  • groupPolicy: "open"
  • channels config: {} (empty, relying on groupPolicy open + default mention gating)

Steps to Reproduce

  1. Bot receives an @mention in a Slack channel and responds (top-level message or threaded reply)
  2. A user replies to the bot's message in the thread (no @mention, just a thread reply)
  3. Expected: Gateway treats thread reply as implicit mention and routes to agent
  4. Actual: Thread reply event is silently dropped — no log entry at all

Evidence from Logs

  • Gateway was running and Slack socket was connected at the time of the thread reply
  • The thread reply Slack event (parent_user_id = bot user ID) appears nowhere in gateway logs
  • Surrounding events (cron ticks, env-override warnings) are logged normally
  • The message IS visible when reading the thread via Slack API (message.read)

Expected Behavior

Per docs/channels/groups.md:

Replying to a bot message counts as an implicit mention (when the channel supports reply metadata). This applies to Telegram, WhatsApp, Slack, Discord, and Microsoft Teams.

And per docs/channels/slack.md:

Mention sources: explicit app mention, mention regex patterns, implicit reply-to-bot thread behavior

The thread reply should be treated as an implicit mention and routed to the agent session.

Workaround

Currently polling threads manually via message.read with threadId after responding in channels.

extent analysis

Fix Plan

To fix the issue of thread replies to bot messages being silently dropped, we need to update the mention gate to correctly handle implicit mentions in Slack channels.

Step-by-Step Solution

  • Update the channels config to include a mention_gating section with implicit_reply_to_bot set to true.
  • Modify the Slack event handler to check for parent_user_id matching the bot user ID and treat it as an implicit mention.
  • Add logging for thread reply events to verify that the fix is working.

Example Code

# Update channels config
channels_config = {
    'mention_gating': {
        'implicit_reply_to_bot': True
    }
}

# Modify Slack event handler
def handle_slack_event(event):
    if event['type'] == 'message' and event['parent_user_id'] == bot_user_id:
        # Treat as implicit mention
        handle_implicit_mention(event)
    else:
        # Handle other events as usual
        handle_other_event(event)

# Add logging for thread reply events
def handle_implicit_mention(event):
    logger.info('Implicit mention detected: %s', event)
    # Route to agent session
    route_to_agent(event)

Verification

To verify that the fix is working, check the logs for thread reply events and ensure that they are being routed to the agent session correctly. You can also test by replying to a bot message in a Slack channel and verifying that the response is received by the agent.

Extra Tips

  • Make sure to update the channels config and Slack event handler in the production environment to ensure that the fix is applied correctly.
  • Consider adding additional logging and monitoring to detect any further issues with implicit mentions in Slack channels.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Slack: implicit reply-to-bot thread detection not working in channels (groupPolicy: open) [1 participants]