Merged
Conversation
现象:在 192.168.10.3 局域网部署场景下(手机同网段访问 WebUI),AI 回复会大概率重复渲染。 原因:SSE 重复投递 + 事件订阅重复绑定 + lifecycle end 与 chat.final 时序竞态叠加,导致同一终态被重复消费。 解决后结果:加入 SSE/终态去重并修正订阅与状态流转后,手机同网段实测不再重复渲染。
Collaborator
|
感谢再次贡献 🎉 这个 PR 质量很高,三层去重(SSE 传输层 + 业务层 runId + 内容签名)+ lifecycle 竞态修复,分析得很到位。 已合并并发布到 v1.5.1,欢迎继续参与! |
Merged
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.
现象:在 192.168.10.3 局域网部署场景下(手机同网段访问 WebUI),AI 回复会大概率重复渲染。
原因:SSE 重复投递 + 事件订阅重复绑定 + lifecycle end 与 chat.final 时序竞态叠加,导致同一终态被重复消费。
解决后结果:加入 SSE/终态去重并修正订阅与状态流转后,手机同网段实测不再重复渲染。