mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
## Why Context compaction can replace original conversation items that Guardian still needs to review approval-sensitive actions. ## What changed - Retain a bounded, chronological review history independently of the model's compacted history. - Keep separate limits for user messages and other transcript items so tool traffic cannot evict user instructions. - Use the retained evidence for synchronous and asynchronous Guardian transcripts, while resetting it after rollback or history reconstruction. ## Testing - Cover retention through compaction and eviction, reset behavior after rollback, independent size limits, and asynchronous transcript construction. GitOrigin-RevId: c5851e992820504fc18de8cfec7f6f9f1b69f316