mirror of
https://github.com/openai/codex.git
synced 2026-10-24 23:54:33 +00:00
## Why Local compaction rebuilds preserved user input as a single text item. Carrying over the original per-item content kinds can leave its annotation metadata out of sync with the rebuilt content. ## What changed - Set the rebuilt item's content kind to `user.text` when the original message had content-kind metadata. - Preserve the remaining message and harness metadata. ## Testing - Cover metadata normalization in compacted history. - Verify persisted replacement history contains the merged text and a matching `user.text` content kind. GitOrigin-RevId: cd10b8ec68ef8ec2a272a90182e69875b60dc35c