Skip to content

fix(discord): honor explicit tool-only status reactions - #76733

Merged
steipete merged 1 commit into
mainfrom
fix/discord-status-reactions-tool-only
May 3, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/discord-status-reactions-tool-only

Conversation

@steipete

@steipete steipete commented May 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@clawsweeper

clawsweeper Bot commented May 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

Summary
This PR changes the Discord monitor to honor messages.statusReactions.enabled: true in tool-only replies, adds a regression test, and records the fix in the changelog.

Reproducibility: yes. Source inspection on current main shows message_tool_only turns force statusReactionsEnabled false before the explicit config opt-in can matter, and the existing test harness already covers the default tool-only suppression path.

Next step before merge
No repair job is needed; this is an open focused PR that appears reviewable as-is and needs normal maintainer handling.

Security
Cleared: The diff touches Discord runtime reaction gating, a colocated test, and CHANGELOG.md; it does not change dependencies, CI, secrets, permissions, or package execution paths.

Review details

Best possible solution:

Land the narrow Discord monitor change with its regression test and changelog after normal maintainer review and targeted Discord monitor test validation.

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

Yes. Source inspection on current main shows message_tool_only turns force statusReactionsEnabled false before the explicit config opt-in can matter, and the existing test harness already covers the default tool-only suppression path.

Is this the best way to solve the issue?

Yes. The PR’s explicit-true override is the narrowest maintainable fix because it preserves default tool-only suppression while allowing only the user’s explicit statusReactions.enabled: true opt-in.

What I checked:

Likely related people:

  • steipete: Current-main blame points the Discord status-reaction gating block and the ack fallback helper at commit 97cdd73; the recent Mantis Discord smoke design also documents this exact scenario. (role: recent maintainer; confidence: high; commits: 97cdd73aa628, 0bf06e953fdd; files: extensions/discord/src/monitor/message-handler.process.ts, extensions/discord/src/monitor/ack-reactions.ts, docs/concepts/mantis.md)
  • Shadow: Commit 30a0d3f introduced the shared status reaction controller, config schema, and Discord/Telegram wiring that this PR adjusts at the Discord call site. (role: introduced shared status-reaction behavior; confidence: medium; commits: 30a0d3fce18c; files: src/channels/status-reactions.ts, src/config/types.messages.ts, extensions/discord/src/monitor/message-handler.process.ts)

Remaining risk / open question:

  • Targeted Vitest validation was not run because this sweep is read-only; the verdict is based on source, docs, provided PR diff, and test-harness inspection.

Codex review notes: model gpt-5.5, reasoning high; reviewed against 727398f41a85.

@steipete
steipete force-pushed the fix/discord-status-reactions-tool-only branch from 051fd81 to 0a1a58d Compare May 3, 2026 14:40
@steipete

steipete commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

🦞🦞
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.

@steipete
steipete merged commit 0949f4f into main May 3, 2026
103 checks passed
@steipete
steipete deleted the fix/discord-status-reactions-tool-only branch May 3, 2026 14:44
lxe pushed a commit to lxe/openclaw that referenced this pull request May 6, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant