Repository navigation
Preserve file-backed audio in tool outputs - #60735
Merged
copyberry[bot] merged 1 commit intoNov 11, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## 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
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/f4704466e6151662d2c8b8dc3f5ca2ab2f5710a2
branch
from
November 11, 2026 06:41
5eec46e to
9018f3a
Compare
Contributor
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/f4704466e6151662d2c8b8dc3f5ca2ab2f5710a2
branch
November 11, 2026 06:41
chowyuan1314
temporarily deployed
to
issue-triage
November 11, 2026 06:50 — with
GitHub Actions
Inactive
chowyuan1314
temporarily deployed
to
issue-triage
November 11, 2026 06:50 — with
GitHub Actions
Inactive
chowyuan1314
temporarily deployed
to
issue-triage
November 11, 2026 06:50 — with
GitHub Actions
Inactive
1248819635
temporarily deployed
to
issue-triage
November 11, 2026 06:51 — with
GitHub Actions
Inactive
1248819635
temporarily deployed
to
issue-triage
November 11, 2026 06:51 — with
GitHub Actions
Inactive
1248819635
temporarily deployed
to
issue-triage
November 11, 2026 06:51 — with
GitHub Actions
Inactive
elyouyang
temporarily deployed
to
issue-triage
November 11, 2026 06:56 — with
GitHub Actions
Inactive
elyouyang
temporarily deployed
to
issue-triage
November 11, 2026 06:56 — with
GitHub Actions
Inactive
elyouyang
temporarily deployed
to
issue-triage
November 11, 2026 06:56 — with
GitHub Actions
Inactive
liyinred
temporarily deployed
to
issue-triage
November 11, 2026 06:58 — with
GitHub Actions
Inactive
liyinred
temporarily deployed
to
issue-triage
November 11, 2026 06:58 — with
GitHub Actions
Inactive
liyinred
temporarily deployed
to
issue-triage
November 11, 2026 06:58 — with
GitHub Actions
Inactive
liyinred
temporarily deployed
to
issue-triage
November 11, 2026 06:59 — with
GitHub Actions
Inactive
ifanversh
temporarily deployed
to
issue-triage
November 11, 2026 07:01 — with
GitHub Actions
Inactive
ifanversh
temporarily deployed
to
issue-triage
November 11, 2026 07:01 — with
GitHub Actions
Inactive
ifanversh
temporarily deployed
to
issue-triage
November 11, 2026 07:01 — with
GitHub Actions
Inactive
YunchengLiu
temporarily deployed
to
issue-triage
November 11, 2026 07:02 — with
GitHub Actions
Inactive
YunchengLiu
temporarily deployed
to
issue-triage
November 11, 2026 07:02 — with
GitHub Actions
Inactive
YunchengLiu
temporarily deployed
to
issue-triage
November 11, 2026 07:02 — with
GitHub Actions
Inactive
ifanversh
temporarily deployed
to
issue-triage
November 11, 2026 07:02 — with
GitHub Actions
Inactive
yaoshujia89-boop
temporarily deployed
to
issue-triage
November 11, 2026 07:04 — with
GitHub Actions
Inactive
yaoshujia89-boop
temporarily deployed
to
issue-triage
November 11, 2026 07:04 — with
GitHub Actions
Inactive
yaoshujia89-boop
temporarily deployed
to
issue-triage
November 11, 2026 07:04 — with
GitHub Actions
Inactive
mateusz-bielak
temporarily deployed
to
issue-triage
November 11, 2026 07:05 — with
GitHub Actions
Inactive
mateusz-bielak
temporarily deployed
to
issue-triage
November 11, 2026 07:05 — with
GitHub Actions
Inactive
mateusz-bielak
temporarily deployed
to
issue-triage
November 11, 2026 07:05 — with
GitHub Actions
Inactive
yaoshujia89-boop
temporarily deployed
to
issue-triage
November 11, 2026 07:05 — with
GitHub Actions
Inactive
rachelekramer8-lab
temporarily deployed
to
issue-triage
November 11, 2026 07:05 — with
GitHub Actions
Inactive
rachelekramer8-lab
temporarily deployed
to
issue-triage
November 11, 2026 07:05 — with
GitHub Actions
Inactive
rachelekramer8-lab
temporarily deployed
to
issue-triage
November 11, 2026 07:05 — with
GitHub Actions
Inactive
mateusz-bielak
temporarily deployed
to
issue-triage
November 11, 2026 07:05 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preserve file-backed audio in tool outputs
Why
Converting message content to tool output previously reduced file-backed audio to a text file ID, losing its audio type.
What changed
input_audiotool output items to carry eitheraudio_urlorfile_id, preserving both forms during content conversion.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.