mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
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:
1 parent
164b3bfeab
commit
aea26afaee
3 files changed
+13
No files matched your search
Generated
+1
@@ -2399,6 +2399,7 @@ dependencies = [
|
|||||||
"codex-rollout",
|
"codex-rollout",
|
||||||
"codex-rollout-trace",
|
"codex-rollout-trace",
|
||||||
"codex-sandboxing",
|
"codex-sandboxing",
|
||||||
|
"codex-skills-extension",
|
||||||
"codex-state",
|
"codex-state",
|
||||||
"codex-stdio-to-uds",
|
"codex-stdio-to-uds",
|
||||||
"codex-terminal-detection",
|
"codex-terminal-detection",
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ codex-rmcp-client = { workspace = true }
|
|||||||
codex-rollout = { workspace = true }
|
codex-rollout = { workspace = true }
|
||||||
codex-rollout-trace = { workspace = true }
|
codex-rollout-trace = { workspace = true }
|
||||||
codex-sandboxing = { workspace = true }
|
codex-sandboxing = { workspace = true }
|
||||||
|
codex-skills-extension = { workspace = true }
|
||||||
codex-state = { workspace = true }
|
codex-state = { workspace = true }
|
||||||
codex-stdio-to-uds = { workspace = true }
|
codex-stdio-to-uds = { workspace = true }
|
||||||
codex-terminal-detection = { workspace = true }
|
codex-terminal-detection = { workspace = true }
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ use state_db_recovery as local_state_db;
|
|||||||
|
|
||||||
use codex_config::LoaderOverrides;
|
use codex_config::LoaderOverrides;
|
||||||
use codex_core::build_models_manager;
|
use codex_core::build_models_manager;
|
||||||
|
use codex_core::config::Config;
|
||||||
use codex_core::config::ConfigBuilder;
|
use codex_core::config::ConfigBuilder;
|
||||||
use codex_core::config::ConfigOverrides;
|
use codex_core::config::ConfigOverrides;
|
||||||
use codex_core::config::edit::ConfigEditsBuilder;
|
use codex_core::config::edit::ConfigEditsBuilder;
|
||||||
@@ -2056,6 +2057,16 @@ async fn run_debug_prompt_input_command(
|
|||||||
config.chatgpt_base_url.clone(),
|
config.chatgpt_base_url.clone(),
|
||||||
config.http_client_factory(),
|
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(
|
let prompt_input = codex_core::build_prompt_input(
|
||||||
config,
|
config,
|
||||||
input,
|
input,
|
||||||
|
|||||||
Reference in new issue
Block a user