Repository navigation
[skip eval] fix: 推荐问题在流结束前收到 ready 时不再隐藏 - #389
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
问题
#388 上线后在 dev 用前台标签页逐帧采样(5ms 一次):推荐区在流关闭前先出现,约 1.4 秒后消失约 44ms,然后在流关闭的同一刻重新出现。会话刷新那一步已经不闪了(刷新请求的发起和返回都晚于这次消失)。
原因
#387 只在消息状态为
pending时于流关闭前提前渲染推荐区。后端会在封口前发出suggested_questions_ready,状态变为ready后不再满足条件,推荐区被隐藏,直到流关闭才重新显示。改动
AssistantMessage:流关闭前提前渲染的条件从「状态为pending」改为「状态为pending或ready」,仍要求打字机已经显示完正文。验证
🤖 Generated with Claude Code