mirror of
https://github.com/openai/codex.git
synced 2026-05-19 10:43:38 +00:00
Expose remote view_image output mismatch
Include the captured function-call output value when the remote view_image routing assertion receives a non-content-item payload, so CI logs identify the remaining remote failure mode. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -580,9 +580,9 @@ async fn view_image_routes_to_selected_remote_environment() -> anyhow::Result<()
|
||||
let output = wait_for_function_call_output(&test, &response_mock, call_id).await?;
|
||||
assert_eq!(response_mock.requests().len(), 2);
|
||||
let output_value = output.get("output").unwrap_or(&output);
|
||||
let output_items = output_value
|
||||
.as_array()
|
||||
.context("view_image output should be content items")?;
|
||||
let output_items = output_value.as_array().with_context(|| {
|
||||
format!("view_image output should be content items, got {output_value}")
|
||||
})?;
|
||||
assert_eq!(output_items.len(), 1);
|
||||
let image_url = output_items[0]
|
||||
.get("image_url")
|
||||
|
||||
Reference in New Issue
Block a user