Repository navigation
fix(runtime): disable builtin web search for Codex runs - #1321
Open
lanqing431 wants to merge 1 commit into
Open
lanqing431 wants to merge 1 commit into
lanqing431 wants to merge 1 commit into
Conversation
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.
What changed
Codex run nodes can advertise their built-in
web_searchtool to an OpenAI-compatible gateway that does not support it, causing the first turn to fail with HTTP 400. The chat path already disables that tool.Set
web_search="disabled"in the final Codex provider argv, before theresumesubcommand. Applying the policy here covers existing saved executors and the live CLI harness without changing catalog data. The Agent's MCP configuration remains available.Add four cases to the existing provider suite (existing executor, cached/live search overrides and resume), and make the existing real-CLI gateway acceptance test reject built-in web-search tool declarations.
Fixes #1313.
Scope
Compatibility
No schema, credential, protocol or persisted-executor migration. Run nodes consistently disable Codex's native search, matching the existing chat policy; this intentionally overrides a saved cached/live native-search setting. MCP and the final prompt are preserved, including on resume.
Validation
Exact tested head:
ad2d5a03ca5d7af18b697fe5eac40146404d26e6, based on2ad5659be8844fe4a4dfd12253b3584d9e4f1d14.These are fork CI results on the exact head, not claims about upstream review or merge approval. The additional regression-proof workflow lives only on a fork validation branch and is not part of this PR.
Safety
Prepared with Codex assistance, including source analysis, implementation, regression tests and verification.