Skip to content

Commit cb32f9c

Browse files
authored
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
1 parent 907afc9 commit cb32f9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codex-rs/core/src/codex.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,7 @@ async fn submission_loop(
11521152
if let Err(items) = sess.inject_input(items) {
11531153
// Derive a fresh TurnContext for this turn using the provided overrides.
11541154
let provider = turn_context.client.get_provider();
1155+
let auth_manager = turn_context.client.get_auth_manager();
11551156

11561157
// Derive a model family for the requested model; fall back to the session's.
11571158
let model_family = find_family_for_model(&model)
@@ -1166,7 +1167,7 @@ async fn submission_loop(
11661167
// Reuse the same provider and session id; auth defaults to env/API key.
11671168
let client = ModelClient::new(
11681169
Arc::new(per_turn_config),
1169-
None,
1170+
auth_manager,
11701171
provider,
11711172
effort,
11721173
summary,

0 commit comments

Comments
 (0)