openclaw - 💡(How to fix) Fix Feature: Attention window for group chats (auto-listen after mention) [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#74615Fetched 2026-04-30 06:22:14
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants

After receiving a mention in a group chat, the agent should auto-listen to all messages for a configurable duration (e.g. 15 minutes), then revert to mention-only mode. This avoids the friction of needing to @ the agent for every follow-up message in a conversation.

Root Cause

After receiving a mention in a group chat, the agent should auto-listen to all messages for a configurable duration (e.g. 15 minutes), then revert to mention-only mode. This avoids the friction of needing to @ the agent for every follow-up message in a conversation.

Code Example

channels:
  slack:
    attentionWindow: 900  # seconds (15 min)0 or omitted = current behavior
RAW_BUFFERClick to expand / collapse

Summary

After receiving a mention in a group chat, the agent should auto-listen to all messages for a configurable duration (e.g. 15 minutes), then revert to mention-only mode. This avoids the friction of needing to @ the agent for every follow-up message in a conversation.

Motivation

In Slack (and other platforms), the current requireMention setting is static — either the agent sees everything or only mentions. In practice, when someone starts a conversation with the agent, they want a back-and-forth without @-ing every message. But having it listen to everything all the time wastes tokens and creates noise.

An attention window solves this elegantly: mention once to get the agent's attention, then have a natural conversation for X minutes before it goes quiet again.

Proposed Config

channels:
  slack:
    attentionWindow: 900  # seconds (15 min) — 0 or omitted = current behavior

Behavior

  1. Agent receives a mention → starts attention window timer
  2. During the window, agent processes all messages in that channel (as if requireMention: false)
  3. When the window expires, reverts to mention-only
  4. Any new mention during an active window resets the timer
  5. Should work across all platforms: Slack, Discord, Telegram, etc.

Additional Context

Requested by a user who found it tedious to @ the agent for every message in a multi-message conversation.

extent analysis

TL;DR

Implement an attention window feature that allows the agent to auto-listen to all messages for a configurable duration after receiving a mention.

Guidance

  • Introduce a new configuration option attentionWindow to specify the duration in seconds, with 0 or omission implying the current behavior.
  • Update the agent's message processing logic to start a timer when a mention is received and process all messages in the channel during the attention window.
  • Reset the timer when a new mention is received during an active window.
  • Ensure the feature works across all supported platforms, including Slack, Discord, and Telegram.

Example

channels:
  slack:
    attentionWindow: 900  # seconds (15 min)

This example configuration sets the attention window to 15 minutes for the Slack channel.

Notes

The implementation should consider handling edge cases, such as multiple mentions during an active window, and ensure a smooth transition between attention window and mention-only modes.

Recommendation

Apply workaround by implementing the proposed attentionWindow configuration and updating the agent's message processing logic to support the new feature, as it provides a more flexible and user-friendly experience.

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 Feature: Attention window for group chats (auto-listen after mention) [1 participants]