mirror of
https://github.com/openai/codex.git
synced 2026-11-29 07:35:16 +00:00
Refresh host skill catalogs through world state (#33425)
## Why Host skills can change after a thread starts. Subsequent turns need the updated catalog without reinjecting an unchanged catalog on every turn. ## What changed - Register the host skill provider in app-server and project its catalog through a dedicated World State section. - Render host skills with the existing metadata budget and usage instructions, including skill-root aliases when available. - Suppress the legacy host catalog and contextual fragment when World State owns the catalog, while preserving host skills for explicit and shadow selection. ## Testing Added an app-server test that installs a host skill at runtime and verifies the catalog updates once and remains stable on the following turn. GitOrigin-RevId: 4cacc6b2258fc3cab8499fbdf9aa6ab0324ec10d
This commit is contained in:
1 parent
2b486b4676
commit
0f2321f244
10 files changed
+366
-23
No files matched your search
@@ -25,6 +25,7 @@ use codex_protocol::protocol::SessionSource;
|
||||
use codex_protocol::protocol::SkillScope;
|
||||
use codex_protocol::protocol::TruncationPolicy;
|
||||
use codex_protocol::user_input::UserInput;
|
||||
use codex_skills_extension::HostSkillProvider;
|
||||
use codex_skills_extension::SkillProviders;
|
||||
use codex_skills_extension::SkillsExtensionConfig;
|
||||
use codex_skills_extension::catalog::SkillAuthority;
|
||||
@@ -226,7 +227,9 @@ async fn shadow_selection_uses_host_snapshot_and_excludes_executor_candidates()
|
||||
let mut builder = ExtensionRegistryBuilder::<()>::new();
|
||||
install_with_providers_and_metrics(
|
||||
&mut builder,
|
||||
SkillProviders::new().with_executor_provider(Arc::new(ExecutorProvider)),
|
||||
SkillProviders::new()
|
||||
.with_executor_provider(Arc::new(ExecutorProvider))
|
||||
.with_host_provider(Arc::new(HostSkillProvider::new())),
|
||||
Some(metrics.clone()),
|
||||
|_| SkillsExtensionConfig {
|
||||
include_instructions: true,
|
||||
|
||||
Reference in new issue
Block a user