You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Deprecated codex_hooks warning appears even when [features].hooks is enabled #22148
Codex CLI shows the deprecated [features].codex_hooks warning even though the active config already uses the replacement key and has hooks enabled.
Active config.toml snippet:
[features]
hooks = true
Observed warning:
[features].codex_hooks is deprecated. Use [features].hooks instead.
Enable it with --enable hooks or [features].hooks in config.toml. See https://developers.openai.com/codex/config-basic#feature-flags for details.
Expected behavior
No deprecation or enablement warning should be shown when [features].hooks = true is present in the active config.
Impact
The warning is shown regardless of the actual hooks feature state, which makes it look like the config still uses the deprecated key when it does not.
changed the title [-]Deprecated codex_hooks warning appears even when [features].hooks is enabled[/-][+][Bug] Deprecated codex_hooks warning appears even when [features].hooks is enabled[/+]on May 11, 2026
I searched the plausible active config locations and did not find an active codex_hooks entry in TOML/config. The warning still appears in the Desktop UI and logs.
One additional data point: the installed Desktop bundle itself still contains a legacy internal override. In resources/app.asar I find exactly one features.codex_hooks occurrence:
This appears to be in an ephemeral thread_title generation path. The Desktop logs line up with that: the deprecation notice is emitted around internal/unknown turn/started events, followed shortly by:
So at least for Codex Desktop on Windows, this looks like it may be triggered by an app-internal config override rather than by the user's config.toml. Migrating that internal override to features.hooks (or suppressing legacy deprecation notices for app-internal overrides) should likely clear the false warning.
I can reproduce this on Codex Desktop for macOS as well.
Environment:
Codex Desktop log release: 26.513.20950
App-bundled CLI: codex-cli 0.131.0-alpha.9
PATH CLI: codex-cli 0.130.0
Active user config: ~/.codex/config.toml contains a [features] table, but no active codex_hooks key.
I did not find a project-local .codex/config.toml or .codex/hooks.json under the active workspace chain.
Evidence:
codex features list reports hooks stable true.
The Desktop log emits the warning after hooks/list / thread startup activity, e.g.:
2026-05-15T07:34:39.424Z info ... method=hooks/list ...
2026-05-15T07:34:39.464Z warning ... summary="`[features].codex_hooks` is deprecated. Use `[features].hooks` instead."
The macOS app bundle itself contains the legacy internal override in /Applications/Codex.app/Contents/Resources/app.asar:
This matches @mySebbe's Windows finding. On macOS this also appears to be triggered by an app-internal config override rather than by a user/project config.toml entry.
same issue. it's showing up with a project level config selected, but that project level config also no longer exists (so the "open config.toml ↗" doesn't work)
+1, same issue on v0.129.0 (macOS arm64). config.toml has [features] hooks = true, no codex_hooks anywhere. Warning appears every session start. Confirmed via strings that codex_hooks is an internal feature flag name in the native binary — the deprecation check seems to trigger on the internal name, not the config key.
Activity
[-]Deprecated codex_hooks warning appears even when [features].hooks is enabled[/-][+][Bug] Deprecated codex_hooks warning appears even when [features].hooks is enabled[/+]etraut-openai commentedon May 11, 2026
Codex is working as intended here. If you want to avoid the deprecation warning, delete the deprecated key.
etraut-openai commentedon May 12, 2026
Misunderstood the bug report. Reopening.
etraut-openai commentedon May 12, 2026
I'm not able to repro the problem.
I'm guessing that you have
codex_hooks = truein one of your config.toml files. Perhaps a project-local config file?omermosko4 commentedon May 12, 2026
Nope, I only have the global
~/.codex/config.tomlfileTyceHerrman commentedon May 12, 2026
Seeing the same thing
mySebbe commentedon May 15, 2026
I can reproduce this in Codex Desktop for Windows too, and in my case the active user config is already migrated.
Environment:
OpenAI.Codex_26.506.3741.0_x64__2p2nqsd0c76g0.../app/Codex.execodex-cli 0.130.0-alpha.5~/.codex/config.tomlcontains:I searched the plausible active config locations and did not find an active
codex_hooksentry in TOML/config. The warning still appears in the Desktop UI and logs.One additional data point: the installed Desktop bundle itself still contains a legacy internal override. In
resources/app.asarI find exactly onefeatures.codex_hooksoccurrence:This appears to be in an ephemeral
thread_titlegeneration path. The Desktop logs line up with that: the deprecation notice is emitted around internal/unknownturn/startedevents, followed shortly by:So at least for Codex Desktop on Windows, this looks like it may be triggered by an app-internal config override rather than by the user's
config.toml. Migrating that internal override tofeatures.hooks(or suppressing legacy deprecation notices for app-internal overrides) should likely clear the false warning.Zephyrlux commentedon May 15, 2026
I can reproduce this on Codex Desktop for macOS as well.
Environment:
26.513.20950codex-cli 0.131.0-alpha.9codex-cli 0.130.0~/.codex/config.tomlcontains a[features]table, but no activecodex_hookskey..codex/config.tomlor.codex/hooks.jsonunder the active workspace chain.Evidence:
codex features listreportshooks stable true.hooks/list/ thread startup activity, e.g.:/Applications/Codex.app/Contents/Resources/app.asar:This matches @mySebbe's Windows finding. On macOS this also appears to be triggered by an app-internal config override rather than by a user/project
config.tomlentry.seandearnaley commentedon May 18, 2026
also experiencing this issue, no sign of a hooks configuration.
dionysuzx commentedon May 22, 2026
same issue. it's showing up with a project level config selected, but that project level config also no longer exists (so the "open config.toml ↗" doesn't work)
jabza commentedon May 22, 2026
Same issue - wondering if there's other config.toml around from older Codex cli installs?
papperrollinggery commentedon May 27, 2026
+1, same issue on v0.129.0 (macOS arm64).
config.tomlhas[features] hooks = true, nocodex_hooksanywhere. Warning appears every session start. Confirmed viastringsthatcodex_hooksis an internal feature flag name in the native binary — the deprecation check seems to trigger on the internal name, not the config key.fix(codex): write canonical hooks feature flag and migrate deprecated…
chore: sync upstream/main (289 commits) into main (#42)
release: v0.1.23 — migrate deprecated [features].codex_hooks key on $…
fix(codex): write canonical hooks feature flag and migrate deprecated…