Repository navigation
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.
在 Cohub 发起、由本地 Codex 执行的同一轮对话,可能被原生会话同步再次上传,产生用户没有主动创建的 fork。实际排查发现,原会话与分支连续五轮的回答及本地归档完全相同,属于同一次执行被重复同步。
原因是 Codex 0.162.1 将云端轮次标记保存在
event_msg/user_message.client_id,现有读取逻辑只识别旧的item_completed/UserMessage.client_id,漏掉了新格式中的标记。本次正式修复只有 2 行:读取新位置的标记,复用已有去重逻辑。另附三项必要回归检查及一条 CLI 补丁发布说明;不改同步架构,不清理或合并已有会话。
验证结果:
问题现场截图(2026-10-11)
下图直接截自 Cohub 的会话列表:上方是原会话“Space CSS 换肤设计与实现”,下方是意外出现的
# AGENTS.md instructions for /…会话,左侧连线显示派生关系。用户没有主动派生这条会话,也没有同时在两端继续。截图仅保留这两条会话的标题和关系,已裁掉聊天正文、其他会话以及浏览器内容,没有重建界面。截图中的
fetch failed是原会话后来出现的另一个错误,不是本 PR 的修复对象。截图展示异常分支现象;重复同步的判断依据前述五轮回答及本地归档一致的核查结果。图片存放在独立证据分支,不增加本 PR 的源码改动。尚未替换运行中的本地后台程序。