mirror of
https://github.com/openai/codex.git
synced 2026-11-29 07:35:16 +00:00
Resolve skill package aliases in skills.read (#38261)
## Why Skill catalogs can present shortened package locators, but callers previously had to expand those aliases before reading a skill. ## What changed - Resolve catalog aliases automatically when `skills.read` looks up a model-visible executor or orchestrator skill package. - Update skill prompts and tool documentation to tell models to pass the listed package locator directly. ## Testing - Exercise reading an executor skill through its shortened package locator when the skills catalog exceeds its context budget. GitOrigin-RevId: d1cdfd64002510b616146929deb5b7077850b951
This commit is contained in:
1 parent
18dcc7646f
commit
130c7c93a9
6 files changed
+36
-12
No files matched your search
@@ -1046,7 +1046,7 @@ fn build_aliased_catalog(
|
||||
))
|
||||
}
|
||||
|
||||
fn build_alias_plan(entries: &[&SkillCatalogEntry]) -> Option<AliasPlan> {
|
||||
pub(crate) fn build_alias_plan(entries: &[&SkillCatalogEntry]) -> Option<AliasPlan> {
|
||||
let source = &entries.first()?.authority.kind;
|
||||
if entries.iter().any(|entry| &entry.authority.kind != source) {
|
||||
return None;
|
||||
|
||||
Reference in new issue
Block a user