nonebot / nonebot/plugin-alconna
[Bug] dispatch子命令 在并发消息处理中串用到其他事件的解析结果
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 143
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
请确认:
- 问题的标题明确
- 我翻阅过其他的issue并且找不到类似的问题
- 我已经阅读了相关文档 并仍然认为这是一个Bug
Bug
问题
A用户发送普通聊天消息,B发送指令,handler处理时收到A用户的聊天事件
如何复现
触发 dispatch 指令后跟随其他消息
预期行为
子 matcher 的 handler 正常接收到B用户的消息事件
使用环境:
- Python 版本: 3.13.11
- Nonebot2 版本:2.5.0
- Alconna 版本: 0.62.1
日志/截图
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the dispatch subcommand while concurrent messages arrive, using the stated Python, NoneBot2, and Alconna versions. Trace how the subcommand handler receives its event and identify where another event's parsing result is reused; done when B's event consistently reaches the child matcher handler.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100