Skip to content

v1.0.1

Choose a tag to compare

@Ruisi-Lu Ruisi-Lu released this 03 Oct 10:14
· 5 commits to main since this release
847ad1a

Fixes

  • Pre-commit gate is fail-closed end to end. A commit passes only when the staged diff was captured and codex exits 0 with a verdict starting ALLOW:. A failed or empty git diff --cached, a non-zero codex exit, or a timeout now blocks the commit, even if codex wrote an ALLOW: line.
  • Clearer block messages. When codex fails without a verdict, the gate reports the exit status (or the timeout) and shows the last 20 lines of codex's own output.
  • Ephemeral reviews. The gate runs codex exec --ephemeral, so staged diffs are not kept in codex's session history. Diff capture uses --no-ext-diff --no-color so user git config cannot alter what codex reviews.
  • Review skill prompt usage. codex exec review rejects a custom prompt combined with --base, --uncommitted or --commit; the skill now names the diff inside the prompt instead.

Requirements

  • codex-cli 0.119.0 or newer (verified against 0.160.0). /codex-review:init now stops when an older codex is installed.

Upgrading the gate in a repository

The hook is a copy in .githooks/pre-commit. Run /codex-review:init in each repository to replace it with this version.

Full changelog: v1.0.0...v1.0.1