mirror of
https://github.com/openai/codex.git
synced 2026-11-19 23:05:23 +00:00
fix: harden plugin feature gating (#15020)
1. Use requirement-resolved config.features as the plugin gate. 2. Guard plugin/list, plugin/read, and related flows behind that gate. 3. Skip bad marketplace.json files instead of failing the whole list. 4. Simplify plugin state and caching.
This commit is contained in:
1 parent
606d85055f
commit
580f32ad2a
40 files changed
+926
-52
No files matched your search
@@ -1991,7 +1991,7 @@ impl App {
|
||||
// TODO(xl): Move into PluginManager once this no longer depends on config feature gating.
|
||||
thread_manager
|
||||
.plugins_manager()
|
||||
.maybe_start_curated_repo_sync_for_config(&config);
|
||||
.maybe_start_curated_repo_sync_for_config(&config, &SessionSource::Cli);
|
||||
let mut model = thread_manager
|
||||
.get_models_manager()
|
||||
.get_default_model(&config.model, RefreshStrategy::Offline)
|
||||
|
||||
Reference in new issue
Block a user