Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Linked issues
#10937 [Bug] QQ 官方机器人单独 @ 无法进入等待,且问候生成期间可能漏接后续消息 · 3 of 3 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | A standalone @ with an empty or whitespace-only Plain component starts waiting. | ✅ Met | Detection ignores whitespace-only Plain components in a filtered copy, leaving the original message chain unchanged. |
| 2 | Real text, images and files are not mistaken for an empty mention. | ✅ Met | Only whitespace-only Plain components are ignored; remaining components must still be exactly one mention or wake-prefix component. |
| 3 | Follow-ups received within the 60-second waiting window, including during greeting generation, are handled. | ✅ Met | The 60-second waiter is started and given a scheduling turn before the optional greeting is yielded. |
Sourcery assessment
Approved.
Contributor
Linked issuesChecked at commit b708402 #10937 [Bug] QQ 官方机器人单独 @ 无法进入等待,且问候生成期间可能漏接后续消息 · 3 of 3 met
|
sourcery-ai
Bot
dismissed
their stale review
November 19, 2026 09:05
Sourcery withdrew this approval because the latest commits introduced blocking findings.
mantoujun12
requested changes
Nov 26, 2026
This branch has not been deployed
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.
Fixes #10937.
QQ Official can deliver an empty mention as
[At(bot), Plain("")], causing the built-in handler to skip waiting. Once recognized, an empty mention also has a second failure window: the waiter is registered only after the optional LLM greeting, so follow-ups received during greeting generation can be missed.Modifications / 改动点
Plaincomponents when detecting empty mentions, without modifying the original message chain. Preserve normal handling of real text, images and files.ProcessStageandSessionWaiter, with controlled model-stage substitutes.The waiting window now starts before greeting generation. Configuration defaults, session keys and access controls are unchanged.
Screenshots or Test Results / 运行截图或测试结果
Base:
masterat2481b8346444f329b583dd9c9362ec060a1db603.Environment: Windows, Python 3.12.16, isolated checkout and test data directory.
Command:
Results:
ruff check .: passed.ruff format --check .: 544 files already formatted.git diff --check: passed.Coverage includes follow-ups during and after greeting generation, silent waiting, timeout, cancellation, generator closure, greeting setup failure, concurrent follow-ups on one active waiter, and conversation separation. Existing audioop deprecation and pytest-asyncio fixture-scope warnings remain.
Validation limits: the full test suite and live QQ delivery were not run against this checkout. The same production patch on a local 4.29.4 instance successfully handled two live follow-ups sent after the greeting. The exact during-generation timing is verified offline only. Cross-member isolation and overlapping registrations for the same session are outside scope; greeting/reply delivery order is not guaranteed.
Checklist / 检查清单
Summary by Sourcery
Preserve empty-mention follow-ups by registering the waiting session before greeting generation and reliably replaying captured messages after the greeting.
Bug Fixes:
Enhancements:
Tests: