From 502fc1219cfa41f7a0950b752ebc4b3d7ec2f504 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Sat, 9 May 2026 15:47:14 -0700 Subject: [PATCH] Use remote primary in remote routing tests Keep both environments available in the routing tests, but make the remote selection primary so remote image/tool handling uses the same turn context as the selected remote tool call. Co-authored-by: Codex --- codex-rs/core/tests/suite/remote_env.rs | 2 +- codex-rs/core/tests/suite/view_image.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/tests/suite/remote_env.rs b/codex-rs/core/tests/suite/remote_env.rs index 73fe8a1c79..278e4906a1 100644 --- a/codex-rs/core/tests/suite/remote_env.rs +++ b/codex-rs/core/tests/suite/remote_env.rs @@ -269,7 +269,7 @@ async fn exec_command_routes_to_selected_remote_environment() -> Result<()> { "yield_time_ms": 1_000, "environment_id": REMOTE_ENVIRONMENT_ID, }), - Some(vec![local_selection, remote_selection]), + Some(vec![remote_selection, local_selection]), ) .await?; assert!( diff --git a/codex-rs/core/tests/suite/view_image.rs b/codex-rs/core/tests/suite/view_image.rs index 29b754d973..d3df085e0c 100644 --- a/codex-rs/core/tests/suite/view_image.rs +++ b/codex-rs/core/tests/suite/view_image.rs @@ -573,7 +573,7 @@ async fn view_image_routes_to_selected_remote_environment() -> anyhow::Result<() test.submit_turn_with_environments_no_wait( "route view image", - Some(vec![local_selection, remote_selection]), + Some(vec![remote_selection, local_selection]), ) .await?;