mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why The first session metadata record defines a rollout's history mode. If that record uses an unsupported mode, skipping it as a parse error can cause later metadata copied from fork history to be treated as canonical. ## What changed - Validate session metadata history modes before deserializing rollout lines, while continuing to tolerate unknown modes in copied fork history. - Simplify thread status registration to pass only the thread ID instead of a fully materialized `Thread`. GitOrigin-RevId: 9de4313d4a76b279d32bb49b2016a4f5d07507c1