Skip to content

Classify rollout tool calls by their runtime handler - #57194

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0e72f3ef55cda2796e779efd16241e4a0dbf0c5b
Oct 26, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0e72f3ef55cda2796e779efd16241e4a0dbf0c5b

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

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_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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/0e72f3ef55cda2796e779efd16241e4a0dbf0c5b branch from 3dcb1d3 to b6a4378 Compare October 26, 2026 19:04
@copyberry
copyberry Bot merged commit b6a4378 into main Oct 26, 2026
15 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/0e72f3ef55cda2796e779efd16241e4a0dbf0c5b branch October 26, 2026 19:04
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 26, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — b6a43788 Deployed Oct 26, 2026 by jchamlin via Identify potential duplicates (open issues fallback) #59117
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants