Skip to content

feat: Move plugin sharing control into plugin config#22430

Open
xl-openai wants to merge 1 commit into
mainfrom
xl/plugins
Open

feat: Move plugin sharing control into plugin config#22430
xl-openai wants to merge 1 commit into
mainfrom
xl/plugins

Conversation

@xl-openai
Copy link
Copy Markdown
Collaborator

  • Replaces the plugin_sharing feature with [plugins] allow_sharing, defaulting to enabled while preserving existing [plugins."<name>"] entries.
  • Lets requirements force plugin sharing off

@xl-openai xl-openai requested a review from sayan-oai May 13, 2026 04:21
@xl-openai xl-openai requested a review from a team as a code owner May 13, 2026 04:21
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: cf6f50d022

ℹ️ 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 190 to 191
RemotePlugin,
/// Enable remote plugin sharing flows.
PluginSharing,
/// Show the startup prompt for migrating external agent config into Codex.
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 the old plugin_sharing opt-out

When an existing user or managed config still contains [features] plugin_sharing = false, removing plugin_sharing from the feature registry makes that key unknown and ignored by Features::apply_map, while Config::plugins_allow_sharing() now defaults to allowing sharing unless [plugins].allow_sharing is explicitly false. In those installations, upgrading silently re-enables plugin/list SharedWithMe and plugin/share/save flows that were previously disabled, so the old stable key needs to be honored during migration or mapped into the new plugin config gate.

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.

it's ok this flag is not used in any released version.

Copy link
Copy Markdown
Collaborator

@sayan-oai sayan-oai left a comment

Choose a reason for hiding this comment

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

some cleanup needed as we discussed offline. PluginsConfig and PluginsRequirementToml types dont seem great as its another wrapping layer, but i dont see an obvious alternative

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.

2 participants