mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
Avoid caching empty plugin outcomes when plugins feature is disabled
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -260,11 +260,6 @@ impl PluginsManager {
|
||||
) -> PluginLoadOutcome {
|
||||
if !plugins_feature_enabled_from_stack(config_layer_stack) {
|
||||
info!(cwd = ?cwd, "plugins disabled in config layer stack");
|
||||
let mut cache = match self.cache_by_cwd.write() {
|
||||
Ok(cache) => cache,
|
||||
Err(err) => err.into_inner(),
|
||||
};
|
||||
cache.insert(cwd.to_path_buf(), PluginLoadOutcome::default());
|
||||
return PluginLoadOutcome::default();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user