From 0cf428ebed07eae7efcd3fcfdd9497554f6873a5 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Mon, 20 Apr 2026 17:22:47 -0700 Subject: [PATCH] Fix unified exec environment id assertion The test serializes captured request JSON before checking the model-visible environment context, so XML attribute quotes are JSON-escaped in the assertion string. Co-authored-by: Codex --- codex-rs/core/tests/suite/unified_exec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/tests/suite/unified_exec.rs b/codex-rs/core/tests/suite/unified_exec.rs index a8a0e526c4..6f04d1d7ec 100644 --- a/codex-rs/core/tests/suite/unified_exec.rs +++ b/codex-rs/core/tests/suite/unified_exec.rs @@ -408,7 +408,7 @@ async fn unified_exec_environment_id_targets_non_primary_environment() -> Result "environment list should be visible to the model: {request_text}" ); assert!( - request_text.contains("id=\"local\""), + request_text.contains("id=\\\"local\\\""), "local environment id should be visible to the model: {request_text}" ); assert!(