Commit Graph
5 Commits
Author SHA1 Message Date
Adam Perry 80abbcdf84 perf(skills): overlap missing-root preflight 2026-07-10 06:14:41 +00:00
Adam Perry 77d52ae727 perf(skills): raise root scan concurrency
(cherry picked from commit e3db22795107c218f4b98f763522326a979dbbe6)
2026-07-10 05:57:27 +00:00
Adam Perry c6942e78c5 perf(skills): prioritize agents skill roots
(cherry picked from commit 1225c729e5092ca26c8182a072afed5f7120bba1)
2026-07-10 05:57:27 +00:00
Adam Perry 16b7af6bfe perf: load skill roots concurrently
(cherry picked from commit 7a3b81e5d8510cc3a91af5328417d5aeed20c7af)
2026-07-10 05:57:27 +00:00
xl-openai e83b7841b0 [codex] Reuse parsed plugin skills during session startup (#28844)
## Summary

- Preserve raw plugin skill-root snapshots in the matching loaded-plugin
cache entry, keyed by the effective plugin root identity including
namespace.
- Pass those snapshots through `SkillsLoadInput` as an optional preload,
so session startup reuses plugin parsing while ordinary skill loads pass
`None`.
- Keep plugin skill loading cohesive: the existing loaders accept the
optional snapshots directly, and uncached or marketplace-detail paths do
not create a cache.

## Why

Plugin discovery already parses plugin skills to determine available
capabilities. Cold session startup then scanned and parsed the same
roots again while building the skills snapshot.

This solves the same duplicate-work problem as #28623 while keeping
ownership narrow: `PluginsManager` creates and owns
`PluginSkillSnapshots` only for its loaded-plugin cache entry;
`SkillsService` consumes an optional clone. Entry replacement or
clearing naturally drops the snapshots, with no separate generation,
capacity policy, or watcher coupling.

## Validation

- `cargo clippy -p codex-core-skills --all-targets -- -D warnings`
- `just test -p codex-core-plugins
skills_service_reuses_skills_parsed_during_plugin_load`
- `just test -p codex-core-skills
namespaces_plugin_skills_using_provided_namespace`
- `just fmt`
2026-06-18 16:45:58 -07:00