web_search_request still triggers deprecated tools.web_search notice on 0.66.0-alpha.7

Resolved 💬 3 comments Opened Dec 6, 2025 by malpern Closed Dec 9, 2025
💡 Likely answer: A maintainer (gameofby, contributor) responded on this thread — see the highlighted reply below.

Bug: web_search_request still triggers deprecation notice on latest alpha

Environment

  • macOS (local dev machine)
  • codex-cli 0.66.0-alpha.7 installed via npm install -g @openai/codex@alpha
  • ~/.codex/config.toml contains:
  • [features] web_search_request = true
  • [tools] web_search_request = true
  • (no web_search entries)
  • codex features list shows web_search_request = true (stable)

Steps to Reproduce

  1. npm install -g @openai/codex@alpha
  2. codex -V → codex-cli 0.66.0-alpha.7
  3. codex exec --color never "Say hi"

Expected

  • No deprecation message, since web_search_request is enabled and the legacy tools.web_search tool should be suppressed.

Actual

  • CLI prints:

``
deprecated:
tools.web_search is deprecated. Use web_search_request instead.
Enable it with
--enable web_search_request or [features].web_search_request in config.toml.
``

  • Then the turn proceeds normally.

Notes

  • Repro occurs even with --disable warnings.
  • The warning also appears on codex exec runs that do not request search (e.g., simple “Say hi” prompt).
  • Appears to be an upstream toolset wiring issue: the session still receives tools.web_search despite the flag.

View original on GitHub ↗

3 Comments

gameofby contributor · 8 months ago

@malpern You can remove the configuration under [tools] to mute this warning message. Actually, [features].web_search_request is the replacement for deprecated [tools].web_search.

The warning message and related docs are a bit of confusing. I've filed a PR #7685 to optimize it.

sayan-oai contributor · 8 months ago

Thanks for reporting. This is addressed by #7685. The fix will be included in the next release.

gerrywastaken · 6 months ago

I have no idea what the error even means... codex has a config? What config.toml? Pretty sure I didn't set this. I can probably figure this out but I'm posting because there are likely a lot of users hitting this.

@sayan-oai
<img width="1179" height="697" alt="Image" src="https://github.com/user-attachments/assets/510b18e6-c421-490d-920a-9afd5111a630" />

---
edit:
while I'm here, this release seems quite buggy

<img width="1173" height="519" alt="Image" src="https://github.com/user-attachments/assets/42a32559-5bba-46ce-837f-545cfb5b6c50" />