add token-based tool deferral behind feature flag (#18097)

add new `tool_search_always_defer_mcp_tools` feature flag that always
defers all mcp tools rather than deferring once > 100 deferrable tools.

add new tests, also move `mcp_exposure` tests into dedicated file rather
than polluting `codex_tests`.
This commit is contained in:
sayan-oai
2026-04-17 18:34:06 +08:00
committed by GitHub
parent 20b4b80426
commit d0047de7cb
6 changed files with 332 additions and 177 deletions

View File

@@ -497,6 +497,9 @@
"tool_search": {
"type": "boolean"
},
"tool_search_always_defer_mcp_tools": {
"type": "boolean"
},
"tool_suggest": {
"type": "boolean"
},
@@ -2390,6 +2393,9 @@
"tool_search": {
"type": "boolean"
},
"tool_search_always_defer_mcp_tools": {
"type": "boolean"
},
"tool_suggest": {
"type": "boolean"
},