fix(aiocqhttp): correct listener lifecycle handling#2336
Merged
RockChinQ merged 2 commits intoJul 13, 2026
Merged
Conversation
Member
|
Thanks for your contribution. Please use the PR template to file the PR, and attach the screenshot that proves your code works well. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
概述 / Overview
修复 aiocqhttp 适配器中三个关联的监听器生命周期问题:
unregister_listener()能移除实际订阅的 callback,而不是抛出NotImplementedError。Fixes three related listener-lifecycle issues in the aiocqhttp adapter:
unregister_listener()removes the actual aiocqhttp callback.更改前后对比截图 / Screenshots
修改前 / Before:
修改后 / After:
检查清单 / Checklist
PR 作者完成 / For PR author
项目维护者完成 / For project maintainer
验证 / Verification
uv run pytest tests/unit_tests/platform/test_aiocqhttp_message_converter.py -q(23 passed)uv run pre-commit run --files src/langbot/pkg/platform/sources/aiocqhttp.py tests/unit_tests/platform/test_aiocqhttp_message_converter.pygit diff --check