Skip to content

Avoid rendering generated images twice - #34378

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6c865b6a96d6a71bb2c33246d1518a00e7c8b840
Jul 20, 2026
Merged

Avoid rendering generated images twice#34378
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6c865b6a96d6a71bb2c33246d1518a00e7c8b840

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 20, 2026

Copy link
Copy Markdown

Avoid rendering generated images twice

What changed

  • Tell the model that generated images are already displayed to the user and should not be repeated as Markdown images or file links.
  • Keep generated-image artifact paths and output hints owned by the image generation extension.
  • Centralize the availability check for the image generation tool across feature, provider, namespace-tool, model modality, and authentication requirements.

Testing

  • Verify artifact paths sanitize session and call identifiers.
  • Verify the model-facing output hint reports that the generated image is already displayed.
## What changed

- Tell the model that generated images are already displayed to the user and should not be repeated as Markdown images or file links.
- Keep generated-image artifact paths and output hints owned by the image generation extension.
- Centralize the availability check for the image generation tool across feature, provider, namespace-tool, model modality, and authentication requirements.

## Testing

- Verify artifact paths sanitize session and call identifiers.
- Verify the model-facing output hint reports that the generated image is already displayed.

GitOrigin-RevId: 6c865b6a96d6a71bb2c33246d1518a00e7c8b840
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6c865b6a96d6a71bb2c33246d1518a00e7c8b840 branch from 5d9d525 to 7e51abb Compare July 20, 2026 16:48
@copyberry
copyberry Bot merged commit 7e51abb into main Jul 20, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6c865b6a96d6a71bb2c33246d1518a00e7c8b840 branch July 20, 2026 16:49
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant