mirror of
https://github.com/openai/codex.git
synced 2026-09-07 15:40:00 +00:00
## What changed - Add `ToolLifecycleContributor::on_mcp_tool_result` with access to the executed MCP tool context, rewritten arguments, extension data stores, and mutable server result. - Run contributors before publishing MCP completion and before preparing the result for the model, so extensions can inspect or replace successful and error results. ## Testing - Cover unchanged, replaced, and error results for direct MCP calls, plus replaced and error results through Code Mode. - Verify completion waits for result processing and the processed result flows to both completion events and subsequent model input. GitOrigin-RevId: ece7acfe9c5eed4778cb78a29c3ffd06a74e1bcf