From cb32f9c64e8ba4731758e3617411359e66c65745 Mon Sep 17 00:00:00 2001 From: Gabriel Peal Date: Mon, 25 Aug 2025 15:57:20 -0700 Subject: [PATCH] Add auth to send_user_turn (#2688) It is there for send_user_message but was omitted from send_user_turn. Presumably this was a mistake --- codex-rs/core/src/codex.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/codex.rs b/codex-rs/core/src/codex.rs index 72a13750f..c5c726fe3 100644 --- a/codex-rs/core/src/codex.rs +++ b/codex-rs/core/src/codex.rs @@ -1152,6 +1152,7 @@ async fn submission_loop( if let Err(items) = sess.inject_input(items) { // Derive a fresh TurnContext for this turn using the provided overrides. let provider = turn_context.client.get_provider(); + let auth_manager = turn_context.client.get_auth_manager(); // Derive a model family for the requested model; fall back to the session's. let model_family = find_family_for_model(&model) @@ -1166,7 +1167,7 @@ async fn submission_loop( // Reuse the same provider and session id; auth defaults to env/API key. let client = ModelClient::new( Arc::new(per_turn_config), - None, + auth_manager, provider, effort, summary,