mirror of
https://github.com/openai/codex.git
synced 2026-09-04 15:08:45 +00:00
## What changed - Convert unstructured MCP results into typed function-call output items instead of serializing the entire content array as a text string. - Keep structured MCP results as serialized text and preserve media, encrypted content, and unknown content through their existing item conversions. - Drop empty text items during output truncation so they do not consume API array slots. ## Testing - Cover text-only, mixed unstructured, structured, and image-sanitized MCP results. - Verify empty text items are discarded under byte- and token-based truncation policies. GitOrigin-RevId: fa1c5b7dee6f003a094265379dcabdd060386a48