Skip to content

[skip eval] fix: 推荐问题在流结束前收到 ready 时不再隐藏 - #389

Merged
HyxiaoGe merged 1 commit into
masterfrom
fix/suggested-questions-ready-during-stream
Oct 11, 2026
Merged

HyxiaoGe merged 1 commit into
masterfrom
fix/suggested-questions-ready-during-stream

Conversation

@HyxiaoGe

Copy link
Copy Markdown
Owner

问题

#388 上线后在 dev 用前台标签页逐帧采样(5ms 一次):推荐区在流关闭前先出现,约 1.4 秒后消失约 44ms,然后在流关闭的同一刻重新出现。会话刷新那一步已经不闪了(刷新请求的发起和返回都晚于这次消失)。

原因

#387 只在消息状态为 pending 时于流关闭前提前渲染推荐区。后端会在封口前发出 suggested_questions_ready,状态变为 ready 后不再满足条件,推荐区被隐藏,直到流关闭才重新显示。

改动

AssistantMessage:流关闭前提前渲染的条件从「状态为 pending」改为「状态为 pending 或 ready」,仍要求打字机已经显示完正文。

验证

  • AssistantMessage 测试 18 个通过,新增用例:流关闭前状态变为 ready 时推荐区仍在。eslint 无报错。
  • 合并后在 dev 前台标签页重测时间线。

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HyxiaoGe
HyxiaoGe merged commit 19bec7c into master Oct 11, 2026
5 checks passed
@HyxiaoGe
HyxiaoGe deleted the fix/suggested-questions-ready-during-stream branch October 11, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant