fix: match whatsapp lid aliases in dispatcher allowlist#545
Merged
Conversation
stephamie7
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
已从最新 dev 新建分支并完成修复。
分支:
fix/whatsapp-lid-allowlist-match
远程地址:
https://github.com/AgentFlocks/flocks/tree/fix/whatsapp-lid-allowlist-match
最新提交:
fb794ab fix: match whatsapp lid aliases in dispatcher allowlist
修复内容:
Dispatcher 层对 WhatsApp 通道的 allowlist 不再使用简单字符串匹配。
当 msg.channel_id == "whatsapp" 时,复用 WhatsApp 的 matches_identifier,支持:25482795991095
25482795991095@lid
这两种格式互相匹配。
DM allowlist 和群消息 allowlist 都已覆盖。
其他通道仍保持原来的精确匹配逻辑,不扩大影响面。
验证已通过:
uv run --group dev python -m pytest tests/channel/test_whatsapp.py tests/channel/test_channel.py::TestCheckAllowlist29 个测试通过
git diff --check 通过
npm run build 通过