mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
## Why Legacy models such as `gpt-5.2` emit compaction summaries on the final channel, where the turn's JSON schema can constrain the summary. ## What changed Remote V2 compaction omits the final-answer schema for the legacy `gpt-5`, `gpt-5.1`, `gpt-5.2`, and `gpt-5.4-nano` model families, with an exception for `gpt-5.2-codex`. It recognizes the same model names with Bedrock's `openai.` prefix. Other models retain the schema in compaction requests to preserve the cached prompt prefix. ## Testing Integration tests check schema handling across model variants and verify that compaction retries use the schema rules for the model handling each attempt. Regular sampling retains the configured schema. GitOrigin-RevId: f2ebaa7f3e272cb18ccb879dc7f67973ba1642cc