fix: 修复运行结束后排队消息无法自动发送的问题 - #245
Merged
Merged
Conversation
|
Someone is attempting to deploy a commit to the vastsa's projects Team on Vercel. A member of the Team first needs to authorize it. |
This was referenced Sep 11, 2026
Owner
|
原则正确,已合入(merge commit 问题在当前 这是第三方 fork,按仓库规则对 PR head 跑了本地验证:
现有 无后续跟进。关联 #243。 |
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.
运行中追加的消息已经持久化进入队列,但当前轮结束后不会自动发送。原因是结束事件触发队列调度时,会话仍被收尾流程占用;持久化完成并释放会话后,没有再次唤醒队列。
本次修复在收尾完成、清除会话占用后重新触发队列调度。正常完成、报错和中止后,追加消息都能按 FIFO 顺序继续发送;等待收尾期间不会提前启动,重复处理结束事件不会重复发送,应用退出时也不会启动新的排队任务。
session.endTurn返回,覆盖连续排队、重复结束事件、会话隔离、持久化失败及退出场景。修复前 4 项失败,修复后全部通过。Closes #243