Skip to content

[codex] replace remote images with model-visible error text - #29417

Merged
rka-oai merged 2 commits into
mainfrom
codex/reject-remote-image-urls
Jun 22, 2026
Merged

[codex] replace remote images with model-visible error text#29417
rka-oai merged 2 commits into
mainfrom
codex/reject-remote-image-urls

Conversation

@rka-oai

@rka-oai rka-oai commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What

This PR will extend the existing centralized image-preparation path to replace HTTP(S) image inputs with a model visible error message. It won't "ruin" and break existing rollouts, but it will deprecate support for the pathway. App server clients should no longer use HTTP image urls if they'd like to upgrade.

The HTTP image url pathway is currently resolved in the responsesapi. It is slow and not reccomended.

Behavior

  • HTTP(S) image URL: replace with input_text
  • data URL: use the existing decode and resize path
  • other image URL schemes: leave unchanged

This intentionally does not change app-server ingress. That validation remains a follow-up.

Test plan

  • just test -p codex-core -E 'test(/image_preparation|prepares_image_failures_before_history_insertion|prepares_resumed_history_before_installing_it|responses_lite_prepares_images/)' — 7 passed
  • just fix -p codex-core
  • just fmt

@rka-oai
rka-oai force-pushed the codex/reject-remote-image-urls branch from 64271e4 to ab0cfce Compare June 22, 2026 17:32
@rka-oai
rka-oai marked this pull request as ready for review June 22, 2026 17:34
@rka-oai
rka-oai requested a review from a team as a code owner June 22, 2026 17:34
@rka-oai rka-oai changed the title [codex] replace remote images with model-visible text [codex] replace remote images with model-visible error text Jun 22, 2026
@rka-oai
rka-oai force-pushed the codex/reject-remote-image-urls branch from 1be79bb to bb63f7d Compare June 22, 2026 23:18
@rka-oai
rka-oai merged commit 7153aff into main Jun 22, 2026
31 checks passed
@rka-oai
rka-oai deleted the codex/reject-remote-image-urls branch June 22, 2026 23:41
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants