Repository navigation
Conversation
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. |
chess-oai
force-pushed
the
chess/strip-inherited-mcp-events
branch
from
July 3, 2026 04:47
7d76026 to
25fe424
Compare
chess-oai
force-pushed
the
chess/strip-inherited-mcp-events
branch
from
July 3, 2026 04:48
25fe424 to
c4cf654
Compare
This was referenced Jul 26, 2026
This was referenced Aug 2, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
summary
McpToolCallBeginandMcpToolCallEndevents when constructing forked agent historywhy
#16709 stripped parent tool and reasoning items from forked history, but retained every
EventMsgMCP results are also persisted in
McpToolCallEndevents and may contain large text, structured output, or embedded resources. Forks that retain those parent events serialize the same result payloads into each child rollout, multiplying disk writes, rollout size, and later read and parse work as agent fan-out growsThese events describe calls already executed by the parent and do not contribute to the child model context, so filtering them completes the existing fork sanitizer boundary without changing active MCP execution or parent history
testing
just test -p codex-core forked_rollout_item_filter_drops_mcp_tool_call_lifecyclejust test -p codex-core spawn_agent_can_fork_parent_thread_history_with_sanitized_itemsjust fmt