You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tool 'web_search_preview' is not supported with gpt-5.1-codex-max-2025-12-04. #10071
CLIIssues related to the Codex CLIazureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't workingtool-callsIssues related to tool calling
@gaoconggit Thanks for the report. We're in the process of deprecating the old web_search_request feature flag and moving to a top-level web_search value that can be "live", "cached", or "disabled".
In your case, I think setting web_search="disabled" in your config.toml should solve this. Let me know if that doesn't work.
There will be an explicit deprecation notice in the next CLI version; sorry for the confusion.
In my testing, web_search = "disabled' needs to be at the top-level section of your config.toml above any other sections. Otherwise the setting isn't getting picked up.
@jcbartle, can you share the relevant snippet of your config.toml where it's not getting picked up? It should get picked up both as a top-level field as well as a field in any profiles you define in your config.toml. If it's set under a profile, it will only apply when running codex with that profile.
Hi, @sayan-oai. Thanks for reaching out. I have an extremely basic config file on my machine, so I'm sure this is my fault. Here's the relevant, anonymized snippet:
Yeah, it's being interpreted as part of model_providers and not being picked up; this is a TOML quirk.
If you're in VSCode/Cursor, you can avoid these sorts of issues by using the Even Better TOML extension and setting the schema association for that file to https://developers.openai.com/codex/config-schema.json. That'll give you helpful field autocompletion and diagnostics for misconfigurations like this one.
CLIIssues related to the Codex CLIazureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't workingtool-callsIssues related to tool calling
Activity
sayan-oai commentedon Jan 28, 2026
@gaoconggit Thanks for the report. We're in the process of deprecating the old
web_search_requestfeature flag and moving to a top-levelweb_searchvalue that can be"live","cached", or"disabled".In your case, I think setting
web_search="disabled"in yourconfig.tomlshould solve this. Let me know if that doesn't work.There will be an explicit deprecation notice in the next CLI version; sorry for the confusion.
jcbartle commentedon Jan 28, 2026
In my testing,
web_search = "disabled'needs to be at the top-level section of yourconfig.tomlabove any other sections. Otherwise the setting isn't getting picked up.sayan-oai commentedon Jan 28, 2026
@jcbartle, can you share the relevant snippet of your
config.tomlwhere it's not getting picked up? It should get picked up both as a top-level field as well as a field in anyprofilesyou define in yourconfig.toml. If it's set under a profile, it will only apply when running codex with that profile.jcbartle commentedon Jan 28, 2026
Hi, @sayan-oai. Thanks for reaching out. I have an extremely basic config file on my machine, so I'm sure this is my fault. Here's the relevant, anonymized snippet:
Working:
Not working:
Which now looking at it makes sense as it probably interprets that as being part of the
model_providers.azuresection...sayan-oai commentedon Jan 28, 2026
Yeah, it's being interpreted as part of
model_providersand not being picked up; this is a TOML quirk.If you're in VSCode/Cursor, you can avoid these sorts of issues by using the Even Better TOML extension and setting the schema association for that file to
https://developers.openai.com/codex/config-schema.json. That'll give you helpful field autocompletion and diagnostics for misconfigurations like this one.jgador commentedon Jan 29, 2026
This is the second time that Codex in VS had breaking changes.
fix: dont auto-enable web_search for azure (#10266)
fix: dont auto-enable web_search for azure (#10266)
go back to auto-enabling web_search for azure (#10820)
Merge upstream and adopt Kontext PKCE integration flow (#2)
fix: dont auto-enable web_search for azure (openai#10266)
fix: dont auto-enable web_search for azure (openai#10266)
go back to auto-enabling web_search for azure (openai#10820)