mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Rename host instruction payload to Instructions (#40709)
## What changed Rename the `UserInstructions` type to `Instructions` across the extension API, its core API re-export, and all consumers. This keeps loading behavior and the `LoadedUserInstructions` provider interface unchanged. GitOrigin-RevId: 1ac236b34c31718e7aa38ff5eae5e9b179aeedd8
This commit is contained in:
1 parent
13fe2bcb7a
commit
5ca4175295
12 files changed
+31
-31
No files matched your search
@@ -25,7 +25,7 @@ use codex_exec_server::RemoveOptions;
|
||||
use codex_exec_server::WalkOptions;
|
||||
use codex_exec_server::WalkOutcome;
|
||||
use codex_exec_server::WriteFileOptions;
|
||||
use codex_extension_api::UserInstructions;
|
||||
use codex_extension_api::Instructions;
|
||||
use codex_features::Feature;
|
||||
use codex_protocol::config_types::WindowsSandboxLevel;
|
||||
use codex_protocol::models::PermissionProfile;
|
||||
@@ -311,7 +311,7 @@ impl ExecutorFileSystem for FailingFileSystem {
|
||||
|
||||
struct TestConfig {
|
||||
config: Config,
|
||||
user_instructions: Option<UserInstructions>,
|
||||
user_instructions: Option<Instructions>,
|
||||
}
|
||||
|
||||
impl Deref for TestConfig {
|
||||
@@ -506,7 +506,7 @@ async fn make_config(root: &TempDir, limit: usize, instructions: Option<&str>) -
|
||||
config.cwd = root.abs();
|
||||
config.project_doc_max_bytes = limit;
|
||||
|
||||
let user_instructions = instructions.map(|text| UserInstructions {
|
||||
let user_instructions = instructions.map(|text| Instructions {
|
||||
text: text.to_owned(),
|
||||
source: config.codex_home.join(DEFAULT_AGENTS_MD_FILENAME),
|
||||
});
|
||||
@@ -555,7 +555,7 @@ async fn make_config_with_project_root_markers(
|
||||
|
||||
config.cwd = root.abs();
|
||||
config.project_doc_max_bytes = limit;
|
||||
let user_instructions = instructions.map(|text| UserInstructions {
|
||||
let user_instructions = instructions.map(|text| Instructions {
|
||||
text: text.to_owned(),
|
||||
source: config.codex_home.join(DEFAULT_AGENTS_MD_FILENAME),
|
||||
});
|
||||
@@ -1510,7 +1510,7 @@ async fn instruction_sources_include_global_before_agents_md_docs() {
|
||||
let project_agents = cfg.cwd.join("AGENTS.md");
|
||||
|
||||
let expected = LoadedAgentsMd {
|
||||
user_instructions: Some(UserInstructions {
|
||||
user_instructions: Some(Instructions {
|
||||
text: "global doc".to_string(),
|
||||
source: global_agents.clone(),
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user