Skip to content

Remove plugin hooks feature flag#22552

Merged
abhinav-oai merged 6 commits into
mainfrom
abhinav/remove-plugin-hooks-flag
May 21, 2026
Merged

Remove plugin hooks feature flag#22552
abhinav-oai merged 6 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

@abhinav-oai abhinav-oai enabled auto-merge (squash) May 20, 2026 22:03
default_enabled: true,
},
FeatureSpec {
id: Feature::PluginHooks,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should be retained and and marked Stage::Removed. If you delete it, users who have configured this feature flag will start to see failures at launch.

@abhinav-oai abhinav-oai merged commit 24faf49 into main May 21, 2026
31 checks passed
@abhinav-oai abhinav-oai deleted the abhinav/remove-plugin-hooks-flag branch May 21, 2026 19:15
@github-actions github-actions Bot locked and limited conversation to collaborators May 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants