You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change keeps the first message of a new session visible while the draft session hands off to the formal session, and it does not resend the message. No concrete merge-blocking problem was found. The author still plans native-shell and full-package acceptance testing, which is worth completing before release.
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
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.
问题
新建会话并发送第一条消息后,消息会先出现,随后暂时消失,只剩“正在处理”,过一会儿又恢复。
在本机 0.26.1 的 Web 和 CodexHost 原生桌面端均复现过。浏览器采样中,消息消失约 2 秒,期间没有发生滚动。
修复前后
两张图都是发送后、仍在处理时的画面:
WebKit 验收截图
原因与修复
首次发送时,消息先显示在临时会话中。后台创建正式会话后,界面立即切换,但正式消息记录还没到达,中间就出现了显示空档。
这次主要调整了交接顺序:
没有增加固定延时,也不会重新发送消息。改动位于 Web 与原生桌面壳共用的前端逻辑中。
已做验证
main(0.27.0):8 个定向单测通过,两个受影响的前端模块构建成功。**验证边界:**未重编译原生 App,也未运行完整 0.27.0 组合或全仓测试。定向前端类型检查因缺少上游类型声明包而未通过,没有计入通过项。
希望帮忙检查
这部分涉及会话和发送的生命周期,还想请维护者帮忙看看:
如果发现问题,或认为交接方式还需要调整,我会继续修改。