From 07abb073d2c9b50eaa13769a3148f91fcb8678a9 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Fri, 8 May 2026 17:26:26 -0700 Subject: [PATCH] Fix view image output polling compile error function_call_output already returns an owned JSON value, so the remote-routing wait helper should return it directly instead of calling cloned(). Co-authored-by: Codex --- codex-rs/core/tests/suite/view_image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/tests/suite/view_image.rs b/codex-rs/core/tests/suite/view_image.rs index 2b56369ef0..b3377f7d26 100644 --- a/codex-rs/core/tests/suite/view_image.rs +++ b/codex-rs/core/tests/suite/view_image.rs @@ -73,7 +73,7 @@ async fn wait_for_function_call_output( if let Some(output) = response_mock .requests() .iter() - .find_map(|request| request.function_call_output(call_id).cloned()) + .find_map(|request| request.function_call_output(call_id)) { return output; }