mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## What changed Use `ErrorContextBudget` to truncate model-visible startup error details in environment world state and `wait_for_environment` responses. Keep the existing 256-byte limit per detail and 512-byte total for world state error details, with truncation at UTF-8 character boundaries. ## Testing Extend the world state test to cover a multibyte error that cannot fit in the remaining budget, followed by an ASCII error that uses the last two bytes. GitOrigin-RevId: a6296fc854a383186dacaec5576e9f02e179d34c