mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
## Why Truncating a JSON summary at the 240-byte limit can panic when the cutoff falls inside a multibyte UTF-8 character. ## What changed Truncate at the nearest preceding character boundary before appending `...`. ## Testing Extend the JSON tool-call reuse test with multibyte arguments and assert the truncated summary and original payload reference. GitOrigin-RevId: e4b2af17eb6e3abaeb042772944305c6e1744bdf