Skip to content

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

@malpern

Description

@malpern

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 -Vcodex-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions