Repository navigation
Classify rollout tool calls by their runtime handler - #57194
Merged
copyberry[bot] merged 1 commit intoOct 26, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Tool interception and MCP aliases can route a requested callable to a different handler. Rollout traces need to reflect the handler that actually executes, including when an `exec_command` invocation is intercepted as `apply_patch`. ## What changed Carry an explicit `ToolCallKind` in runtime-start events and use it to update the tool call's execution classification. This replaces MCP-specific payload inspection while preserving the original callable summary and invocation for intercepted patch and aliased MCP calls. ## Testing Add a regression test verifying that an intercepted `exec_command` is recorded as `ApplyPatch`, retains its original summary and invocation, completes successfully, and creates no terminal operations or sessions. GitOrigin-RevId: 0e72f3ef55cda2796e779efd16241e4a0dbf0c5b
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/0e72f3ef55cda2796e779efd16241e4a0dbf0c5b
branch
from
October 26, 2026 19:04
3dcb1d3 to
b6a4378
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/0e72f3ef55cda2796e779efd16241e4a0dbf0c5b
branch
October 26, 2026 19:04
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.
Classify rollout tool calls by their runtime handler
Why
Tool interception and MCP aliases can route a requested callable to a different handler. Rollout traces need to reflect the handler that actually executes, including when an
exec_commandinvocation is intercepted asapply_patch.What changed
Carry an explicit
ToolCallKindin runtime-start events and use it to update the tool call's execution classification. This replaces MCP-specific payload inspection while preserving the original callable summary and invocation for intercepted patch and aliased MCP calls.Testing
Add a regression test verifying that an intercepted
exec_commandis recorded asApplyPatch, retains its original summary and invocation, completes successfully, and creates no terminal operations or sessions.