Simplify plugin skill root snapshot cache

This commit is contained in:
Matthew Zeng
2026-06-18 00:18:52 -07:00
parent 132972507a
commit 31491e461b
10 changed files with 80 additions and 156 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ use codex_config::ConfigLayerEntry;
use codex_config::ConfigLayerSource;
use codex_config::ConfigRequirements;
use codex_config::ConfigRequirementsToml;
use codex_core_skills::SkillRootLoader;
use codex_core_skills::PluginSkillRootCache;
use codex_plugin::PluginId;
use pretty_assertions::assert_eq;
use tempfile::TempDir;
@@ -156,13 +156,13 @@ enabled = true
)
.expect("valid config layer stack");
let store = PluginStore::new(temp_dir.path().to_path_buf());
let skill_root_loader = SkillRootLoader::default();
let plugin_skill_root_cache = PluginSkillRootCache::default();
let full = load_plugins_from_layer_stack(
&stack,
HashMap::new(),
&store,
&skill_root_loader,
&plugin_skill_root_cache,
Some(Product::Codex),
/*prefer_remote_curated_conflicts*/ false,
)