Respect plugin skill availability in tool suggestions (#37447)

## Why

Plugin suggestions should report skills only when the plugin has an enabled skill.

## What changed

- Load suggestion metadata through the shared plugin skill-root loader.
- Apply skill configuration when setting `has_skills` on suggestion candidates.

## Testing

Added coverage for local plugin suggestions with the plugin skill both enabled and disabled.

GitOrigin-RevId: bceb14528c9042b474eaad6efaf919bef72e0ca4
This commit is contained in:
felixxia-oai authored and copyberry committed 2026-08-07 14:17:14 +00:00
1 parent 964a227d8c
commit a9d59d8b8e
3 files changed
+124 -7

No files matched your search

+1 -1
View File
@@ -1860,7 +1860,7 @@ impl PluginsManager {
marketplace_name,
plugin,
self.restriction_product,
Arc::clone(&self.skill_root_scan_slots),
self.skill_root_loader.as_ref(),
)
.await?;
Ok(fragment.project(skill_config_rules, self.auth_mode()))