From 2f1583b411becb2a6345be50754e2e51c53790c8 Mon Sep 17 00:00:00 2001 From: Gan Tu Date: Mon, 14 Sep 2026 23:19:51 +0000 Subject: [PATCH] Discourage logging full image generation results (#45544) Update the image generation tool guidelines to avoid printing full results or base64 image data with `text()` or `notify()`. Recommend printing only small metadata when needed. GitOrigin-RevId: f62b67b384dd39a1cc1adad0956b6fcf69d09c72 --- codex-rs/ext/image-generation/imagegen_description.md | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/ext/image-generation/imagegen_description.md b/codex-rs/ext/image-generation/imagegen_description.md index 368aa10ea8..0667fb494d 100644 --- a/codex-rs/ext/image-generation/imagegen_description.md +++ b/codex-rs/ext/image-generation/imagegen_description.md @@ -5,6 +5,7 @@ The `image_gen.imagegen` tool enables image generation from descriptions and edi Guidelines: - imagegen needs a few minutes to finish. In code-mode, use the first-line @exec directive to give the initial call 120 seconds and the same yield for any waits that follow. Once it finishes, return the image with generatedImage(result). +- Avoid printing the full result or its base64 image data with `text()` or `notify()`; print only small metadata when needed. - Omit both `referenced_image_paths` and `num_last_images_to_include` when generating a brand new image. - For edits, use `referenced_image_paths` when every target image has a local file path. - If you have not seen a local image yet, use `view_image` to inspect it before editing.