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:
jif
2026-11-19 15:46:27 +00:00
committed by copyberry
parent 0b248182be
commit f6a1b61912
8 changed files with 19 additions and 19 deletions
@@ -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>>,
}