Cover Codex OAuth multimodal tool results
Extend the existing Codex OAuth image bridge regression to cover multiple text parts before an image_url, matching the computer-use capture shape that combines tool context with a screenshot attachment.
Alessandro Frau committed
May 23, 2026 at 15:07 UTC
0c9939ba923a254b016c258771fecb5fcde34392
1 file changed
+2
tests/test_oauth_codex.py
+2
@@ -85,6 +85,7 @@ def test_chat_messages_to_response_body_preserves_image_parts_for_responses():
85
"role": "user",
86
"content": [
87
{"type": "text", "text": "Inspect this screenshot."},
88
+ {"type": "text", "text": "Fresh screen attached."},
89
{"type": "image_url", "image_url": {"url": data_url}},
90
],
91
}
@@ -97,6 +98,7 @@ def test_chat_messages_to_response_body_preserves_image_parts_for_responses():
98
"role": "user",
99
"content": [
100
{"type": "input_text", "text": "Inspect this screenshot."},
101
+ {"type": "input_text", "text": "Fresh screen attached."},
102
{"type": "input_image", "image_url": data_url, "detail": "auto"},
103
],
104
}