修复 Discord 私聊 reaction 被静默丢弃(PR #10418)
解决“群里 reaction 触发正常、私聊 reaction 完全无响应”的场景:移除 DM 误拦截并按 DM/groupDM 正确路由 peer。
GITHUBDiscovered 2026-02-13Author mcaxtr
Prerequisites
- You already run Discord integration and rely on reaction events for automations/workflows.
- Gateway runtime can be upgraded to include PR #10418.
Steps
- Upgrade to a build that includes PR #10418, then restart gateway.
- Create two reaction canaries: one in server channel and one in DM/group DM.
- Trigger reaction events and verify DM paths are no longer dropped by guild-only guards.
- Inspect logs/peer metadata and ensure DM uses `kind=dm` with user ID, group DM uses group path.
- Keep one regression test for guild reactions to ensure no channel-side regression.
Commands
openclaw gateway statusopenclaw gateway restartopenclaw statusVerify
DM/group-DM reactions consistently trigger automations, and log text no longer shows `guild=undefined` style misrouting clues.
Caveats
- Discord permission and intent settings can still block events even after this fix.
- The PR description references specific tests; local environment behavior should still be re-validated(需验证)。
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗