mirror of
https://github.com/openai/codex.git
synced 2026-11-11 21:10:39 +00:00
## Why Converting message content to tool output previously reduced file-backed audio to a text file ID, losing its audio type. ## What changed - Allow `input_audio` tool output items to carry either `audio_url` or `file_id`, preserving both forms during content conversion. - Account for file-backed tool audio in history estimates and output truncation, and prepare only inline audio data. - Reject uploaded audio in raw function and custom tool output injection, extending the existing requirement to submit uploaded audio through typed turn input. - Regenerate app-server schemas and TypeScript/Python types while preserving the Python inline audio class name. ## Testing Add coverage for tool audio wire-format round trips, repeated file audio sharing text and audio output budgets, and rejection of raw uploaded audio injection across messages and tool outputs. Extend Python SDK coverage for the inline tool audio shape. GitOrigin-RevId: f4704466e6151662d2c8b8dc3f5ca2ab2f5710a2