Files
codex/codex-rs
Adam Perry @ OpenAI 357fe240c9 Share truncation logic for environment startup errors (#63077)
## 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
2026-11-22 02:54:25 +00:00
..
…
…
…