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
+1 -1
View File
@@ -1566,7 +1566,7 @@ async fn build_extension_turn_input_items(
let input = TurnInputContext {
step_store: &step_context.extension_data,
turn_id: turn_context.sub_id.to_string(),
user_input: user_input.to_vec(),
user_input,
environments,
};
let extension_metrics =