Repository navigation
Include nested Apps tool results in Code Mode sampling requests - #62423
Merged
copyberry[bot] merged 1 commit intoNov 19, 2026
Conversation
## Why Result body capture covered direct Apps calls, leaving eligible calls made inside Code Mode without their result bodies in follow-up sampling metadata. ## What changed Capture eligible nested MCP results and bind them to the originating `exec` or `wait` output for the current turn. Send `tool_result` and `tool_result_call_id` together when both fit the request budget. Keep the bodies out of conversation history and reclaim capture capacity when the output binding is lost. Require analytics to be enabled and the provider to allow request metadata before starting turn-level capture. Check the call's credentials at dispatch and again when recording the result. ## Testing Add coverage for yielded and finished outputs, late results, retries with replacement output items, capture budget recovery, and the request size boundary for sending the body and call ID together. GitOrigin-RevId: 0983261ac39021099d14efa5c9a9acac47ac9269
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/0983261ac39021099d14efa5c9a9acac47ac9269
branch
from
November 19, 2026 03:58
cdd1d16 to
b5d9f71
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. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/0983261ac39021099d14efa5c9a9acac47ac9269
branch
November 19, 2026 03:59
catapult-wang
temporarily deployed
to
issue-triage
November 19, 2026 04:01 — with
GitHub Actions
Inactive
catapult-wang
temporarily deployed
to
issue-triage
November 19, 2026 04:01 — with
GitHub Actions
Inactive
catapult-wang
temporarily deployed
to
issue-triage
November 19, 2026 04:01 — with
GitHub Actions
Inactive
catapult-wang
temporarily deployed
to
issue-triage
November 19, 2026 04:02 — with
GitHub Actions
Inactive
zld0411zld-netizen
temporarily deployed
to
issue-triage
November 19, 2026 04:10 — with
GitHub Actions
Inactive
zld0411zld-netizen
temporarily deployed
to
issue-triage
November 19, 2026 04:10 — with
GitHub Actions
Inactive
zld0411zld-netizen
temporarily deployed
to
issue-triage
November 19, 2026 04:10 — with
GitHub Actions
Inactive
DEC-ChatGPT-Agent
temporarily deployed
to
issue-triage
November 19, 2026 04:44 — with
GitHub Actions
Inactive
DEC-ChatGPT-Agent
temporarily deployed
to
issue-triage
November 19, 2026 04:44 — with
GitHub Actions
Inactive
DEC-ChatGPT-Agent
temporarily deployed
to
issue-triage
November 19, 2026 04:44 — with
GitHub Actions
Inactive
DEC-ChatGPT-Agent
temporarily deployed
to
issue-triage
November 19, 2026 04:45 — with
GitHub Actions
Inactive
devalees
temporarily deployed
to
issue-triage
November 19, 2026 04:47 — with
GitHub Actions
Inactive
devalees
temporarily deployed
to
issue-triage
November 19, 2026 04:47 — with
GitHub Actions
Inactive
devalees
temporarily deployed
to
issue-triage
November 19, 2026 04:47 — 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.
Include nested Apps tool results in Code Mode sampling requests
Why
Result body capture covered direct Apps calls, leaving eligible calls made inside Code Mode without their result bodies in follow-up sampling metadata.
What changed
Capture eligible nested MCP results and bind them to the originating
execorwaitoutput for the current turn. Sendtool_resultandtool_result_call_idtogether when both fit the request budget. Keep the bodies out of conversation history and reclaim capture capacity when the output binding is lost.Require analytics to be enabled and the provider to allow request metadata before starting turn-level capture. Check the call's credentials at dispatch and again when recording the result.
Testing
Add coverage for yielded and finished outputs, late results, retries with replacement output items, capture budget recovery, and the request size boundary for sending the body and call ID together.