mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Include node_repl images in Guardian review evidence (#38454)
## What changed - Preserve valid image content from completed `node_repl` Code Mode responses alongside text evidence for Guardian reviews. - Enable multimodal evidence for models that require automatic `node_repl` review, or when both `guardian_enhanced_node_repl_transcripts` and `guardian_node_repl_transcript_images` are enabled. - Bound retained and rendered evidence, deduplicate images already present in review history, and fall back to text-only evidence when the reviewer lacks image support or prompt capacity. - Keep review evidence out of the parent turn input. ## Testing - Cover feature gating, mixed text and image ordering, truncation and eviction, unsupported reviewers, prompt pressure, image detail normalization, and reused review sessions. GitOrigin-RevId: a3e482402f7b3484401b231dadc662e6e3504fdf
This commit is contained in:
1 parent
1b4ea8b3be
commit
4d9f3021c8
14 files changed
+713
-87
No files matched your search
@@ -228,7 +228,7 @@ async fn preserves_large_image_in_original_mode() {
|
||||
assert_eq!(processed.bytes.as_ref(), original_bytes);
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
#[tokio::test(flavor = "current_thread")]
|
||||
async fn data_url_processing_preserves_supported_source_bytes() {
|
||||
let image = ImageBuffer::from_pixel(64, 32, Rgba([10u8, 20, 30, 255]));
|
||||
let original_bytes = image_bytes(&image, ImageFormat::Png);
|
||||
@@ -236,7 +236,7 @@ async fn data_url_processing_preserves_supported_source_bytes() {
|
||||
.replacen("data:", "DATA:", 1)
|
||||
.replacen(";base64,", ";BASE64,", 1);
|
||||
|
||||
let processed = load_data_url_for_prompt(&image_url, PromptImageMode::ResizeToFit)
|
||||
let processed = load_data_url_for_prompt_uncached(&image_url, PromptImageMode::ResizeToFit)
|
||||
.expect("process data URL image");
|
||||
|
||||
assert_eq!(processed.width, 64);
|
||||
|
||||
Reference in new issue
Block a user