diff --git a/codex-rs/core/src/plugins/manager.rs b/codex-rs/core/src/plugins/manager.rs index 845dfff550..ac0b225d0c 100644 --- a/codex-rs/core/src/plugins/manager.rs +++ b/codex-rs/core/src/plugins/manager.rs @@ -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(); }