mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
## Why Reference-backed forks can lack a local opening user message, causing them to disappear from thread listings or lose their inherited preview when a new turn is written. Compaction can also remove the opening message from the model context used to prepare a fork. ## What changed - Persist inherited previews and preserve them when recording new turns and merging thread-list metadata. - Include reference-backed forks with inherited history in thread listings before their first local message. - Recover opening previews from transcript history within the requested fork boundary when compaction omits them from model context. - Use the shared `user_message_preview` helper when deriving previews from rollout items. ## Testing Extend thread-fork integration tests to check previews in listings before and after a new turn, after reopening, and when forking at a boundary after compaction. GitOrigin-RevId: 5962cf71ea7104f07c9013cc77259b105e4c60d7