mirror of
https://github.com/openai/codex.git
synced 2026-03-05 21:45:28 +03:00
Skip system skills for extra roots (#12744)
When extra roots is set do not load system skills.
This commit is contained in:
@@ -130,6 +130,12 @@ impl SkillsManager {
|
||||
}),
|
||||
);
|
||||
let mut outcome = load_skills_from_roots(roots);
|
||||
if !extra_user_roots.is_empty() {
|
||||
// When extra user roots are provided, skip system skills before caching the result.
|
||||
outcome
|
||||
.skills
|
||||
.retain(|skill| skill.scope != SkillScope::System);
|
||||
}
|
||||
outcome.disabled_paths = disabled_paths_from_stack(&config_layer_stack);
|
||||
let (by_scripts_dir, by_doc_path) =
|
||||
build_implicit_skill_path_indexes(outcome.allowed_skills_for_implicit_invocation());
|
||||
|
||||
Reference in New Issue
Block a user