mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
## What changed - Protect developer messages and final assistant replies from eviction by ordinary message evidence in bounded Guardian v2 transcripts. - Exclude legacy inter-agent messages from that protection and keep recent tool evidence available when the entry limit is reached. - Retain cache-friendly chunked eviction when protected messages themselves exceed transcript bounds. ## Testing - Add transcript unit coverage for message and token limits, rejected commentary, legacy inter-agent messages, and recent tool evidence. - Add an extension test for preserving a final assistant reply after older tool entries are evicted. GitOrigin-RevId: f37d5f25e4105d2ec8fae226a558b703cda69288