mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
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:
committed by
copyberry
parent
f6cf05af1d
commit
a9abdeaff1
@@ -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),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user