Hey β I'm a self-hosted OpenClaw user running a Discord-bound agent stack. I hit a bug where webhook/app messages are silently dropped even when the bot is explicitly mentioned via <@BOT_ID> in the message text.
Root cause: two issues in the preflight handler β
- Discord doesn't populate
mentionedUsersfor webhook authors, so theallowBots: "mentions"gate never passes even with a valid mention in the text resolveDiscordChannelConfigEntryinallow-list.tsomitsallowBotswhen spreading the entry object, making per-channel/guildallowBotsconfig a silent no-op
I have a working fix on my fork with 31 passing unit tests (full extension-channels suite: 2087 tests, 0 failures, clean import boundary check). Codex review run locally β flagged items confirmed unrelated to my patch.
Branch: https://github.com/buckyinsfo-oc/openclaw/tree/rebase/conversation-policy-onto-upstream
The repo requires collaborator access to open PRs β happy to submit one if you can grant access, or if you'd prefer to pull it in directly that works too.