Repository navigation
fix: 恢复旧任务与遗言回执渲染 - #314
Merged
Merged
Conversation
## 现象 缺口 7。旧版恢复回执丢首行,超时等旧回执裸露协议字样。旧批量回执可能只剩最后一条。 ## 根因 历史映射提前拆掉 lastwords 首行,原有恢复卡因而找不到完整信封。后台兼容解析只认识完成与启动失败,旧批量记录又只保存了最后一条结构化标记。 ## 修复 旧 lastwords 保留完整信封交给现有卡片。识别旧任务状态和批量原文,仍可展开保存的日志。对无法完整解读的旧批次保留原文。 ## 验证 真实 Chromium 在修复前复现恢复标题消失与超时原文裸露。修后用真实 checkpoint 验证三段恢复卡、超时日志折叠与展开,以及只有末条标记的旧批次恢复两条状态。89 个 Runtime 相关测试、Ruff、全量 Vitest 2107、tsc 和 Next 静态构建通过。
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
## 现象 旧批量回执仍需与新批量事件投影同时存在。 ## 根因 旧版只留下最后一条标记,需要在新结构化投影前识别旧信封。 ## 修复 读取历史时单独投影有旧标记的批量信封,保留原始内容与消息顺序。 ## 验证 Ruff 及旧回执真实 Chromium 两例通过。
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.
现象
缺口 7。旧版恢复回执丢首行,超时等旧回执裸露协议字样。旧批量回执可能只剩最后一条。
根因
历史映射提前拆掉 lastwords 首行,原有恢复卡因而找不到完整信封。后台兼容解析只认识完成与启动失败,旧批量记录又只保存了最后一条结构化标记。
修复
旧 lastwords 保留完整信封交给现有卡片。识别旧任务状态和批量原文,仍可展开保存的日志。对无法完整解读的旧批次保留原文。
验证
真实 Chromium 在修复前复现恢复标题消失与超时原文裸露。修后用真实 checkpoint 验证三段恢复卡、超时日志折叠与展开,以及只有末条标记的旧批次恢复两条状态。89 个 Runtime 相关测试、Ruff、全量 Vitest 2107、tsc 和 Next 静态构建通过。