mirror of
https://github.com/openai/codex.git
synced 2026-11-13 22:47:20 +00:00
Allow extensions to skip host skill discovery (#40631)
## What changed - Add the under-development `skip_host_skill_discovery` feature to bypass host skill snapshots during session warmup and turn setup. - Let skill invocation contributors declare whether they require host-owned skills. Preserve host discovery when no contributors are registered or any contributor requires it. - Keep executor and orchestrator skill catalogs and instruction loading available when host discovery is skipped. ## Testing - Cover executor-only, orchestrator, mixed-contributor, and legacy host-skill behavior. GitOrigin-RevId: 48169403090b234e1a304c6523633fd867df454a
This commit is contained in:
1 parent
a63cb33e8d
commit
304c8de4c6
9 files changed
+515
-28
No files matched your search
@@ -191,6 +191,17 @@ impl<C: Sync> ExtensionRegistry<C> {
|
||||
&self.skill_invocation_contributors
|
||||
}
|
||||
|
||||
/// Whether any installed skill contributor needs a snapshot of host-owned skills.
|
||||
///
|
||||
/// Registries without skill contributors retain legacy host discovery behavior.
|
||||
pub fn requires_host_skill_discovery(&self) -> bool {
|
||||
self.skill_invocation_contributors.is_empty()
|
||||
|| self
|
||||
.skill_invocation_contributors
|
||||
.iter()
|
||||
.any(|contributor| contributor.requires_host_skill_discovery())
|
||||
}
|
||||
|
||||
/// Returns the first full approval assessment claimed by a contributor.
|
||||
pub async fn full_approval_review(
|
||||
&self,
|
||||
|
||||
Reference in new issue
Block a user