mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Borrow user input in extension turn contexts (#62540)
Pass the host's existing `&[UserInput]` into `TurnInputContext` to avoid cloning the input when building extension turn items. Use the borrowed slice directly for skill mention detection and shadow selection. GitOrigin-RevId: f4983b584830e481d914f0c9aa1e39e78b965a19
This commit is contained in:
@@ -23,8 +23,8 @@ pub struct TurnInputContext<'a> {
|
||||
pub step_store: &'a crate::ExtensionData,
|
||||
/// Stable host-owned turn identifier.
|
||||
pub turn_id: String,
|
||||
/// User input submitted for this turn.
|
||||
pub user_input: Vec<UserInput>,
|
||||
/// User input submitted for this turn, borrowed from the host for the contribution.
|
||||
pub user_input: &'a [UserInput],
|
||||
/// Resolved turn environments, in host priority order.
|
||||
pub environments: Vec<TurnInputEnvironment<'a>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user