Skip to content

fix(codex): use stable hooks feature flag#1309

Closed
oatiz wants to merge 2 commits into
git-ai-project:mainfrom
oatiz:codex_hook_installer
Closed

fix(codex): use stable hooks feature flag#1309
oatiz wants to merge 2 commits into
git-ai-project:mainfrom
oatiz:codex_hook_installer

Conversation

@oatiz

@oatiz oatiz commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Codex hook installation now uses the stable [features].hooks = true flag instead of the deprecated [features].codex_hooks, which avoids the warning shown by current Codex Desktop builds.

image

The installer still recognizes existing codex_hooks configs so older installs are not treated as broken, but install/update migrates them to the canonical hooks flag. Uninstall also preserves hook support when users have non-git-ai hooks.json entries or inline [hooks] config.

What Changed

  • Write hooks = true for fresh Codex hook installs.
  • Treat codex_hooks as a legacy compatibility alias during checks.
  • Remove legacy codex_hooks during install/update migration.
  • Preserve custom notify, custom hooks.json entries, and inline [hooks] config.
  • Update nightly Codex hook wiring verification to check for hooks = true.

Testing

  • cargo fmt --check
  • cargo test codex --lib
  • cargo test install_hooks --test integration

Open in Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

Comment thread scripts/nightly/verify-hook-wiring.sh Outdated
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@svarlamov svarlamov assigned svarlamov and heapwolf and unassigned svarlamov May 8, 2026
@oatiz oatiz closed this May 14, 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.

3 participants