Skip to content

[Bug] Deprecated codex_hooks warning appears even when [features].hooks is enabled #22148

@omermosko4

Description

@omermosko4

What happened?

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.

Version

codex-cli 0.130.0

Environment

macOS, config loaded from ~/.codex/config.toml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingconfigIssues involving config.toml, config keys, config merging, or config updateshooksIssues related to event hooks

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions