Merge pull request #3573 from gsd-build/fix/3566-codex-hooks-canonical-feature-key

fix(3566): emit canonical [features].hooks; recognize legacy codex_hooks alias
This commit is contained in:
Tom Boucher
2026-05-15 15:03:00 -04:00
committed by GitHub
6 changed files with 271 additions and 37 deletions

View File

@@ -0,0 +1,6 @@
---
type: Fixed
pr: 3573
---
**Codex installer now emits canonical `[features].hooks` on fresh inserts (no longer writes deprecated `codex_hooks`)** — Codex's own source marks `codex_hooks` as a `legacy_key` ([codex-rs/features/src/legacy.rs](https://github.com/openai/codex/blob/main/codex-rs/features/src/legacy.rs)). The GSD installer was writing the deprecated key on every install / reinstall on Codex CLI ≥ 0.130.0. The installer now writes the canonical `[features].hooks = true` (section, root-dotted, and block-fallback forms) and the runtime check recognizes both `hooks` and legacy `codex_hooks` as enabling the feature. Pre-existing legacy lines (user-authored or from older GSD installs) are preserved untouched — Codex's own `legacy_key` alias handles them at the runtime layer, so there's no breaking change for existing configs. Closes #3566.