Skip to content

[codex] Clarify Codex hook trust setup - #33

Merged
samleeney merged 1 commit into
mainfrom
codex/codex-hooks-trust-docs
May 19, 2026
Merged

[codex] Clarify Codex hook trust setup#33
samleeney merged 1 commit into
mainfrom
codex/codex-hooks-trust-docs

Conversation

@samleeney

Copy link
Copy Markdown
Owner

Summary

Clarifies the Codex hook setup docs after the hook feature flag update landed in #31.

  • Documents the /hooks trust step required before Codex runs non-managed command hooks.
  • Rewords the repo-local hook note so it does not point at an untracked .codex/hooks.json file.
  • Updates the Codex hook script comment so it refers to the configured command hook rather than only hooks.json.

Why

The setup can appear broken after updating the hook config if Codex has not trusted the command hooks yet. The README now calls out that required review step explicitly.

Validation

  • bash tests/readme-codex-feature-flag.sh
  • bash tests/codex-hook-lifecycle.sh
  • bash tests/status-line-codex-regression.sh
  • bash -n hooks/codex-hook.sh

@samleeney
samleeney marked this pull request as ready for review May 19, 2026 07:12
@samleeney
samleeney merged commit c86ad97 into main May 19, 2026
2 checks passed
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