Add WeChat (Weixin) gateway support - #6876
Closed
halmisen wants to merge 1 commit into
Closed
Conversation
This was referenced Apr 10, 2026
Contributor
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.
Summary
This adds WeChat (Weixin) support to the gateway through the official iLink Bot API.
The main pieces are:
hermes wechatQR login flowNotes
I had a local Weixin integration working already, but the first pass made it pretty clear that shared gateway plumbing is easy to break when a new platform gets added. In particular, this needed to land without knocking out existing platforms that still rely on the same enum and config paths.
This version ports the Weixin work onto current
mainand keeps the existing BlueBubbles support in place instead of replacing it.Validation
python -m py_compile gateway/platforms/weixin.py hermes_cli/wechat_login.py scripts/weixin_login.py hermes_cli/main.py hermes_cli/gateway.py hermes_cli/config.py gateway/config.py gateway/run.py tools/send_message_tool.pypytest tests/gateway/test_weixin_config.py tests/gateway/test_bluebubbles.py -qpytest tests/gateway/test_allowlist_startup_check.py tests/gateway/test_status.py tests/gateway/test_internal_event_bypass_pairing.py -q