mirror of
https://github.com/openai/codex.git
synced 2026-11-28 07:32:19 +00:00
Honor managed plugin disablement for executor capabilities (#40640)
## Why Selected executor plugin roots could still expose capabilities when managed requirements disabled the `plugins` feature. ## What changed - Suppress MCP servers, skills, apps, and connectors from selected executor plugins when `plugins` is disabled, while preserving the selected-root identity used to filter those capabilities. - Apply the policy consistently to direct selected-root discovery and batched executor capability discovery. ## Testing - Add contributor-level and app-server coverage that verifies disabled plugin capabilities are absent and their MCP servers never start. GitOrigin-RevId: e30bd8a936c4b0e083908b89a65f4d02e01747de
This commit is contained in:
1 parent
e44bd9b64d
commit
5ce04789fb
6 files changed
+162
-1
No files matched your search
@@ -116,6 +116,8 @@ impl<'a, C> McpServerContributionContext<'a, C> {
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct SelectedPluginSnapshot {
|
||||
pub plugins: Vec<SelectedPluginIdentity>,
|
||||
/// Selected plugin roots suppressed by the effective plugin feature policy.
|
||||
pub disabled_plugin_roots: Vec<String>,
|
||||
}
|
||||
|
||||
/// The configured identity of a plugin resolved from one selected root.
|
||||
|
||||
Reference in new issue
Block a user