mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Refreshing the MCP catalog with unchanged tool metadata recreated handlers and forced the tool search index to rebuild. ## What changed Cache handlers by canonical tool name and reuse them when tool metadata, agent plugin status, and the input schema size limit are unchanged. Replace handlers when those inputs change and evict tools removed from the catalog, preserving search index reuse across equivalent bindings. ## Testing Extend the deferred tool world state test to verify that an unchanged catalog refresh captures a new binding without rebuilding the search index, and that removing all deferred tools stops advertising `tool_search`. GitOrigin-RevId: 150866f635e9ee817d7ca44fb76e724a3f7608a5