mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Deduplicate plugin skills in unified mentions (#40501)
## Why Unified `@` search could show a plugin alongside the skills it owns, creating duplicate entry points for the same capability. ## What changed - Add a nullable `pluginId` to `SkillMetadata` returned by `skills/list` so clients can associate skills with their owning plugin without inspecting names or paths. - Hide a plugin's owned skills from unified `@` results when that plugin is present, while retaining standalone skills and skills with unknown ownership. - Keep `$` focused on individual skills and apps, and use it consistently as the skills-list shortcut. Preserve the legacy mention behavior when `mentions_v2` is disabled. ## Testing - Cover plugin ownership in `skills/list` and the updated `@` and `$` composer results. GitOrigin-RevId: e168cdff8d0c58f74ce4c228a683880a3167775b
This commit is contained in:
1 parent
465eafacbc
commit
5918c743f3
18 files changed
+121
-25
No files matched your search
@@ -436,6 +436,8 @@ pub struct SkillMetadata {
|
||||
pub path: AbsolutePathBuf,
|
||||
pub scope: SkillScope,
|
||||
pub enabled: bool,
|
||||
/// Owning plugin ID, matching `PluginSummary.id`, when known.
|
||||
pub plugin_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
@@ -943,6 +945,7 @@ impl From<CoreSkillMetadata> for SkillMetadata {
|
||||
path: value.path,
|
||||
scope: value.scope.into(),
|
||||
enabled: true,
|
||||
plugin_id: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user