Fix core integration tests for updated turn APIs (#51441)

Use `TurnEnvironmentRequests` and the executor environment's `request()` in the MCP turn metadata test to match `ThreadSettingsOverrides`. Allow additional fields when matching `TurnInputSubmission::Started` in the pending input test.

GitOrigin-RevId: 6f7f7c60511d999274079f715ba2a68163e69caf
This commit is contained in:
Adam Perry @ OpenAI
2026-10-06 18:18:12 +00:00
committed by copyberry
parent f6cf05af1d
commit a9abdeaff1
2 changed files with 3 additions and 3 deletions
@@ -670,9 +670,9 @@ async fn approved_mcp_tool_call_metadata_records_prior_user_input_request(
..Default::default()
})
.with_thread_settings(ThreadSettingsOverrides {
environments: Some(TurnEnvironmentSelections::new(
environments: Some(TurnEnvironmentRequests::new(
test.config.cwd.clone(),
vec![test.executor_environment().selection().clone()],
vec![test.executor_environment().request()],
)),
approval_policy: Some(AskForApproval::OnRequest),
sandbox_policy: Some(sandbox_policy),
+1 -1
View File
@@ -566,7 +566,7 @@ async fn queue_only_agent_mail_wakes_sleeping_root_with_previous_turn_context(
.await?;
wait_for_turn_complete(&test.codex).await;
// Automatic turns need not replace the model-context baseline on replay.
let TurnInputSubmission::Started { turn_id } = test
let TurnInputSubmission::Started { turn_id, .. } = test
.codex
.start_or_steer_turn(
TurnInputRequest::user_input(Vec::new()).on_start(TurnStartOptions {