Skip to content

ackReactionScope: "all" is silently overridden by isRoomEvent gate #87368

Closed

Description

@paul-phan

Summary

channels.<provider>.ackReactionScope: "all" does not actually ack all inbound messages. A hardcoded !isRoomEvent gate in message-handler.process suppresses ack reactions for any inbound classified as room_event, even though the scope explicitly says "all".

This contradicts the schema description for ackReactionScope, which advertises "all" as unconditional.

Version

OpenClaw 2026.5.26 (10ad3aa)

Repro

  1. Set Discord ack reaction config:
    "channels": {
      "discord": {
        "ackReaction": "✨",
        "accounts": { "samantha": { "ackReaction": "✨" } }
      }
    },
    "messages": {
      "ackReactionScope": "all",
      "groupChat": { "unmentionedInbound": "room_event" }
    }
  2. Restart gateway, confirm config applied via openclaw config get.
  3. Post a message in a guild thread/subthread where the bot is already participating, without @-mentioning the bot.
  4. Bot responds normally (autoThread context keeps the conversation alive).
  5. Expected: ack reaction (✨) appears on the user's message.
  6. Actual: no reaction. messages.reactions is [] for the user message.

Manual reactions via message(action=reactionAdd) work fine — the issue is specifically the auto-ack code path.

Root cause

dist/message-handler.process-LhrhAUW3.js:904-905:

const isRoomEvent = ctx.inboundEventKind === "room_event";
const shouldAckReaction$1 = () => Boolean(!isRoomEvent && ackReaction && shouldAckReaction({
  scope: ackReactionScope,
  isDirect: isDirectMessage,
  ...
}));

The !isRoomEvent short-circuit runs before shouldAckReaction(...), so scope: "all" never gets a chance to override it. The shouldAckReaction helper in ack-reactions.ts correctly returns true for scope "all", but the outer expression masks that.

Because messages.groupChat.unmentionedInbound: "room_event" is a legitimate, documented configuration (quiet always-on listening), inbound thread messages without an explicit @-mention are classified as room_event — and ack reactions get silently dropped.

Why it matters

  • ackReactionScope schema help text says "all" = "always send the ack reaction" — users expect literally all messages.
  • Manual reactions work, so the bot clearly has permission and the emoji is valid; the suppression is purely in the gate logic.
  • There is no unmentionedInbound override at account / guild / channel level, so users can't selectively re-enable ack in a single thread.

Proposed fix

Two viable options:

Option A (preferred) — Make scope "all" truly bypass isRoomEvent:

const isRoomEvent = ctx.inboundEventKind === "room_event";
const ackForcedAll = ackReactionScope === "all";
const shouldAckReaction$1 = () => Boolean((ackForcedAll || !isRoomEvent) && ackReaction && shouldAckReaction({ ... }));

Option B — Add an explicit override flag:

"messages": {
  "ackReactionScope": "all",
  "ackReactionOnRoomEvent": true
}

Option A is cleaner since the contradiction is already in the doc/contract of "all".

Workaround for users today

@-mention the bot in the thread → classified as user_request → ack fires.

Activity

  1. clawsweeper commented on May 27, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 1:46 AM ET / 05:46 UTC.

    Summary
    Keep open: current main and v2026.6.9 still suppress configured room-event ack reactions under messages.ackReactionScope: "all", and #87433 is the active linked fix path.

    Reproducibility: yes. Source inspection shows current main gates Discord and Telegram room-event ack reactions before the shared all scope can apply, and current Discord/Slack/Telegram tests encode room-event reaction silence under all.

    Root-cause cluster
    Relationship: canonical
    Canonical: #87368
    Summary: This issue is the canonical report for the ackReactionScope/room_event conflict; the open linked PR is the active candidate fix, while dynamic ack emoji work is adjacent but distinct.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    No new repair lane: the open linked PR owns the implementation path and this issue should remain the canonical tracker until that path lands or is replaced.

    Review details

    Best possible solution:

    Land #87433 or a maintainer-owned replacement after policy acceptance, matching runtime/tests/docs, and real transport proof; otherwise explicitly document that room events remain reaction-silent.

    Do we have a high-confidence way to reproduce the issue?

    Yes. Source inspection shows current main gates Discord and Telegram room-event ack reactions before the shared all scope can apply, and current Discord/Slack/Telegram tests encode room-event reaction silence under all.

    Is this the best way to solve the issue?

    Unclear. Honoring all for room events is mechanically plausible and already proposed, but it changes the quiet ambient-room contract across sibling chat plugins, so the linked PR needs maintainer policy acceptance and proof before this issue closes.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The remaining fix changes visible ambient-room behavior: existing users with messages.ackReactionScope: "all" may start seeing ack reactions in rooms that were previously reaction-silent.
    • The linked PR is still open and draft with proof and policy review outstanding, so closing this issue before that lands would lose the canonical tracking point.

    Codex review notes: model internal, reasoning high; reviewed against 4b2298e8cbcb.

    Label changes

    Label justifications:

    • P2: This is a normal-priority channel/config semantics bug with limited blast radius, not a core outage.
    • impact:message-loss: The reported symptom is a configured channel acknowledgement reaction being suppressed for an inbound room event.
    Evidence reviewed

    What I checked:

    Likely related people:

    • steipete: Authored the shared ack-reaction gate and ambient-room docs that define the contract being reconciled here. (role: historical ack-reaction and ambient-room contributor; confidence: high; commits: 02bd6e4a249d, a46d2e2b060e; files: src/channels/ack-reactions.ts, docs/channels/ambient-room-events.md)
    • vincentkoc: Current blame on the affected channel reaction lines points to recent broad channel churn, and commit metadata shows review/co-author involvement on adjacent Discord ack/status work. (role: recent area contributor and reviewer; confidence: medium; commits: b43eedbb1818, 2cfcb3c932cc, 5afddf547ed7; files: extensions/discord/src/monitor/message-handler.process.ts, extensions/slack/src/monitor/message-handler/prepare.ts, extensions/telegram/src/bot-message-context.ts)
    • lzyyzznl: Authored recent status-reaction lifecycle work touching Discord and Slack reaction paths that the linked fix must keep separated from plain room-event acks. (role: recent reaction lifecycle contributor; confidence: medium; commits: 5afddf547ed7; files: extensions/discord/src/monitor/message-handler.process.ts, extensions/slack/src/monitor/message-handler/dispatch.ts)
    • mgunnin: Authored recent Discord ingress ack-ordering work in the same handler area, with review metadata tying it to the current channel reaction surface. (role: recent Discord ack contributor; confidence: medium; commits: 2cfcb3c932cc; files: extensions/discord/src/monitor/message-handler.process.ts)
    • scoootscooob: Authored the open linked fix PR for this issue and prior commits that moved Discord, Slack, and Telegram channel implementations into extensions/. (role: candidate fix author and prior channel mover; confidence: medium; commits: 9b8098341fbb, 5682ec37fada, 8746362f5ebf; files: extensions/discord/src/monitor/message-handler.process.ts, extensions/slack/src/monitor/message-handler/prepare.ts, extensions/telegram/src/bot-message-context.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. WarrenJones commented on May 27, 2026

    @WarrenJones
  3. added
    P2Normal backlog priority with limited blast radius.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.
    on Jun 15, 2026
  4. locked as resolved and limited conversation to collaborators on Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions