Skip to content

fix(codex): update review + exec commands for codex v0.130#1653

Open
SpeakShift wants to merge 2 commits into
garrytan:mainfrom
SpeakShift:fix/codex-review-base-prompt-conflict
Open

fix(codex): update review + exec commands for codex v0.130#1653
SpeakShift wants to merge 2 commits into
garrytan:mainfrom
SpeakShift:fix/codex-review-base-prompt-conflict

Conversation

@SpeakShift
Copy link
Copy Markdown

@SpeakShift SpeakShift commented May 22, 2026

Updates the /codex skill's command invocations for codex CLI v0.130.

Problem

1. codex review rejects a [PROMPT] with --base. In codex v0.130:

error: the argument '[PROMPT]' cannot be used with '--base <BRANCH>'

The skill's Step 2A (Review mode) always passes the filesystem-boundary string as a prompt and --base <base> together — so every /codex review invocation fails on its first command. Hit live while running /codex review on a real PR.

2. --enable web_search_cached is deprecated. codex v0.130 warns: web_search_cached is deprecated because web search is enabled by default.

Fix

codex/SKILL.md.tmpl + the regenerated codex/SKILL.md:

  • Default reviewcodex review --base <base> with no prompt. Codex reviews the diff against the base with its default review instructions.
  • Custom-instruction review (/codex review focus on security) → passes the prompt and omits --base — a [PROMPT] and --base are mutually exclusive, so Codex auto-detects the diff against the default base.
  • Drops the deprecated --enable web_search_cached flag from all codex commands — the two review commands and the three codex exec commands (Challenge + Consult modes) — and refreshes the "Web search" doc paragraph.

The filesystem-boundary instruction is necessarily dropped from the default --base review path (no prompt slot). That is safe: review mode only inspects the diff, and skill-definition files are not part of a normal repo diff. The custom-instruction path still carries the boundary.

Commits

  1. fix(codex): codex review --base cannot take a [PROMPT] arg
  2. fix(codex): drop deprecated --enable web_search_cached from exec commands

Scope

Both Review and Exec (Challenge / Consult) modes are covered. No behavior change beyond codex v0.130 compatibility.

🤖 Generated with Claude Code

SpeakShift and others added 2 commits May 22, 2026 16:18
codex CLI v0.130 rejects a prompt argument when --base is passed
(error: the argument '[PROMPT]' cannot be used with '--base <BRANCH>'),
so every '/codex review' invocation fails on the first command.

Default review now runs 'codex review --base <base>' with no prompt.
Custom-instruction review passes the prompt and omits --base (Codex
auto-detects the diff). Also drops the deprecated --enable
web_search_cached flag from the review commands (web search is on by
default in v0.130).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ands

codex v0.130 warns that the web_search_cached feature flag is deprecated
(web search is on by default). Remove --enable web_search_cached from the
three 'codex exec' commands (Challenge + Consult modes) and refresh the
'Web search' doc paragraph. The review commands were cleaned in the
previous commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@SpeakShift SpeakShift changed the title fix(codex): codex review --base cannot take a [PROMPT] argument fix(codex): update review + exec commands for codex v0.130 May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant