gstack/codex
smilesjosh007 a085bbc066 fix(codex): migrate deprecated --enable web_search_cached to -c web_search
codex-cli >= 0.144 prints a deprecation warning on every invocation:
[features].web_search_cached is deprecated because web search is
enabled by default; set web_search at the top level instead.

Replace the flag with -c 'web_search="cached"' in the five /codex
command templates (review, exec review, challenge, consult, consult
resume) and update the Web search doc note. This follows the CLI's own
deprecation guidance and pins the cached index explicitly rather than
relying on the new default. Verified live on codex-cli 0.144.4: the
old flag warns, the new override runs clean, web search stays enabled.

Unlike the --search replacement proposed in #2249 (closed: codex exec
and codex review reject --search on 0.144.4), -c is a stable top-level
mechanism accepted by every subcommand.

Scope: /codex skill only (SKILL.md.tmpl and generated SKILL.md edited
in lockstep; the changed bash blocks pass through generation
verbatim). The same flag remains in autoplan, ship, review, design-*,
office-hours, plan-*-review sections and scripts/resolvers, left for
the separate removal effort mentioned in #2249 or a follow-up PR.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-17 19:20:32 -04:00
..
SKILL.md fix(codex): migrate deprecated --enable web_search_cached to -c web_search 2026-07-17 19:20:32 -04:00
SKILL.md.tmpl fix(codex): migrate deprecated --enable web_search_cached to -c web_search 2026-07-17 19:20:32 -04:00