mirror of
https://github.com/openai/codex.git
synced 2026-10-21 17:48:44 +00:00
## What changed - Model permission instructions as a world-state section keyed by a stable hash of their rendered developer message. - Re-emit permission context when its model-visible contents change or the retained fragment is missing, while avoiding duplicates when matching instructions already exist in history, including bundled developer messages. - Normalize CRLF line endings when hashing world-state fragments so equivalent content produces the same snapshot. ## Testing - Add snapshot coverage for unchanged, changed, absent, and unknown permission state. - Cover bundled retained permissions and restored world-state baselines during rollout reconstruction. GitOrigin-RevId: 7d8d212460c1690ca617859f66dcd825987f1e23