Repository navigation
fix: 按消息 ID 去重 Worker 回传 - #310
Merged
Merged
Conversation
## 现象 缺口 4。同一 Worker 的进度与终态连续回传时,终态被前端吞掉。 ## 根因 实时 steer 与 wake 回显只按 Worker 会话 ID 去重,解析出的消息 ID 未进入块,终态本身也缺消息 ID。 ## 修复 进度和终态各自生成消息 ID,两条实时入口复用消息键。旧回执以会话、类型和内容判定重放,子代理结果仍以子会话去重。 ## 验证 Worker 相关 pytest 33 例、Ruff、Next 静态构建与全量 Vitest 2103 例通过。真实 Chromium 注入生产形状的进度、终态和重放帧,修复前终态为零,修复后进度与终态各一条。
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 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 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.
现象
缺口 4。同一 Worker 的进度与终态连续回传时,终态被前端吞掉。
根因
实时 steer 与 wake 回显只按 Worker 会话 ID 去重,解析出的消息 ID 未进入块,终态本身也缺消息 ID。
修复
进度和终态各自生成消息 ID,两条实时入口复用消息键。旧回执以会话、类型和内容判定重放,子代理结果仍以子会话去重。
验证
Worker 相关 pytest 33 例、Ruff、Next 静态构建与全量 Vitest 2103 例通过。真实 Chromium 注入生产形状的进度、终态和重放帧,修复前终态为零,修复后进度与终态各一条。