Include skills in debug prompt input output (#36311)

## What changed

Register the skills extension when running `codex debug prompt-input`, using
the configured instruction, bundled skill, orchestrator skill, and skill search
settings when building the model-visible prompt input list.

GitOrigin-RevId: bc5cd2b5915daeca0bf589407c32ce083b8e7087
This commit is contained in:
felixxia-oai
2026-07-31 11:35:08 +00:00
committed by copyberry
parent 164b3bfeab
commit aea26afaee
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -2399,6 +2399,7 @@ dependencies = [
"codex-rollout",
"codex-rollout-trace",
"codex-sandboxing",
"codex-skills-extension",
"codex-state",
"codex-stdio-to-uds",
"codex-terminal-detection",
+1
View File
@@ -63,6 +63,7 @@ codex-rmcp-client = { workspace = true }
codex-rollout = { workspace = true }
codex-rollout-trace = { workspace = true }
codex-sandboxing = { workspace = true }
codex-skills-extension = { workspace = true }
codex-state = { workspace = true }
codex-stdio-to-uds = { workspace = true }
codex-terminal-detection = { workspace = true }
+11
View File
@@ -68,6 +68,7 @@ use state_db_recovery as local_state_db;
use codex_config::LoaderOverrides;
use codex_core::build_models_manager;
use codex_core::config::Config;
use codex_core::config::ConfigBuilder;
use codex_core::config::ConfigOverrides;
use codex_core::config::edit::ConfigEditsBuilder;
@@ -2056,6 +2057,16 @@ async fn run_debug_prompt_input_command(
config.chatgpt_base_url.clone(),
config.http_client_factory(),
);
codex_skills_extension::install(&mut extensions, |config: &Config| {
codex_skills_extension::SkillsExtensionConfig {
include_instructions: config.include_skill_instructions,
bundled_skills_enabled: config.bundled_skills_enabled(),
orchestrator_skills_enabled: config.orchestrator_skills_enabled,
shadow_selection_enabled: config
.features
.enabled(codex_features::Feature::SkillSearch),
}
});
let prompt_input = codex_core::build_prompt_input(
config,
input,