Repository navigation
docs(codex): 写清严格 rollout 解析器零生产调用却保留的跨 CLI 守卫理由 - #2097
Merged
Merged
Conversation
- #1650 拆分出 generation 感知解析器后,严格 codexSessionIdFromRolloutPath 生产调用归零;补注释说明它不是死代码,而是 structured-bridge-spec 固定 #1854 跨 CLI 不变量的承重体,避免后续按死代码口径删除导致守卫静默失效 - 更正 findCodexRolloutByPid / matchCodexRolloutPath 上方已过时的解析器说明 - 测试侧补指向源码说明的双向索引 Co-Authored-By: Claude Code <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 21, 2026 06:19
|
🚀 Released in v3.49.0 |
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.
背景
#1650 拆分出 Codex generation 感知解析器(codexGenerationSessionIdFromRolloutPath)后,原来的严格
codexSessionIdFromRolloutPath生产调用归零,只被structured-bridge-spec的守卫测试引用。紧随其后的 #2059 清理「只被测试调用的死代码」,若不写明保留理由,后续很可能按同一口径把它删掉,#1854 的跨 CLI 不变量会静默失效。改动(仅注释,无行为变化)
codexSessionIdFromRolloutPath补完整 doc:① 当前生产调用为 0,但不是死代码,是test/structured-bridge-spec.test.ts > pins the per-CLI differences固定 fix(traex): 识别恢复会话的分段 rollout #1854 不变量的承重体(让正则接受_<uuid>后缀该守卫立即失败);② 守的是共享/有歧义 caller 不能把-<sid>_<uuid>.jsonl读成 Codex 会话,Codex 自己的 generation 场景只走codexGenerationSessionIdFromRolloutPath(pid fd / CODEX_HOME 索引扫描 / 已绑定 bridge)。findCodexRolloutByPid/matchCodexRolloutPath上方已过时的说明(链路实际用 generation 解析器,非严格解析器)。验证
structured-bridge-spec、codex-rollout-generation46 项通过;