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:
vkg-oai authored and copyberry committed 2026-08-25 21:20:51 +00:00
1 parent 13fe2bcb7a
commit 5ca4175295
12 files changed
+31 -31

No files matched your search

+2 -2
View File
@@ -953,7 +953,7 @@ async fn spawn_internal_session_preserves_parent_lineage_without_forking_history
}
}
struct ParentInstructionsProvider(codex_extension_api::UserInstructions);
struct ParentInstructionsProvider(codex_extension_api::Instructions);
impl codex_extension_api::UserInstructionsProvider for ParentInstructionsProvider {
fn load_user_instructions(&self) -> codex_extension_api::LoadUserInstructionsFuture<'_> {
@@ -999,7 +999,7 @@ async fn spawn_internal_session_preserves_parent_lineage_without_forking_history
)
.expect("managed requirements stack");
let parent_instructions = codex_extension_api::UserInstructions {
let parent_instructions = codex_extension_api::Instructions {
text: "parent user instructions must not be inherited".to_string(),
source: config.codex_home.join("AGENTS.md"),
};