Skip to content

Remove plugin hooks feature flag#22552

Open
abhinav-oai wants to merge 3 commits into
mainfrom
abhinav/remove-plugin-hooks-flag
Open

Remove plugin hooks feature flag#22552
abhinav-oai wants to merge 3 commits into
mainfrom
abhinav/remove-plugin-hooks-flag

Conversation

@abhinav-oai
Copy link
Copy Markdown
Collaborator

@abhinav-oai abhinav-oai commented May 13, 2026

Why

This is a follow-up stacked on top of the plugin_hooks default-on change. Once we are comfortable making plugin hooks part of the normal plugin behavior, the separate feature flag stops buying us much and leaves extra branching/cache state behind.

What

  • remove the PluginHooks feature and generated config-schema entries
  • make plugin hook loading/listing follow plugin enablement directly
  • drop plugin-manager cache/state that only existed to distinguish hook-flag toggles
  • remove tests and fixtures that modeled plugin_hooks = true/false

Base automatically changed from abhinav/plugin-hooks-default-on to main May 13, 2026 21:10
…-hooks-flag

# Conflicts:
#	codex-rs/features/src/lib.rs
@abhinav-oai abhinav-oai marked this pull request as ready for review May 15, 2026 00:16
@abhinav-oai abhinav-oai requested a review from a team as a code owner May 15, 2026 00:16
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a5e726bbcf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 966 to 968
stage: Stage::Stable,
default_enabled: true,
},
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.

P1 Badge Preserve managed plugin_hooks requirements

If a managed config pins features.plugin_hooks = false while leaving plugins enabled, deleting this feature key makes parse_feature_requirements classify that requirement as unknown and ignore it; because plugin hooks now follow plugin enablement directly, plugin-bundled hooks will run/list anyway. That silently weakens an admin-managed requirement instead of failing or migrating it, so workspaces that relied on this policy lose their hook block.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think this is acceptable, plugin_hooks flag was strictly for ourselves to gate the feature until we were confident in it

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