Conversation
This branch has not been deployed
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.
问题现象
用户发送过一段完整指令,任务也确实按该指令执行过,但之后重新打开会话,原生消息流中可能找不到这段用户原文,只能看到后续模型回复、问答卡片或补充消息。用户无法在原来的会话页面直接查看当时提出的要求,需要翻查本地日志才能确认发生了什么。
本地排查发现,部分缺失内容仍保存在 rollout 原始记录中,但
thread_history_1.sqlite中缺少对应的userMessage、首条用户消息关联,或整个历史轮次的投影。现有“修复历史会话”主要处理供应商归属及目录可见性,不能补齐这类原生消息索引。修复内容
CODEX_HOME的sessions和archived_sessions,无需用户记住缺失文本或逐个指定会话。结果直接补入原生消息,重新打开会话即可读取。inProgress只有在日志和数据库共同证明后继轮次已开始时才允许补消息,不改写旧状态。避免误恢复的关键保护
(thread_id, rollout_ordinal)约束核验,冲突项不阻断其他安全项;分片归属不能仅凭文件名或正文推测。