mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user