Skip to content

fix(guardrails): support Responses input images in Vision Bridge - #10202

Merged
diegosouzapw merged 2 commits into
cheaper-inference:release/v3.8.50from
Zartharas:fix/codex-responses-vision-bridge-9597
Aug 13, 2026
Merged

diegosouzapw merged 2 commits into
cheaper-inference:release/v3.8.50from
Zartharas:fix/codex-responses-vision-bridge-9597

Conversation

@Zartharas

@Zartharas Zartharas commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fix Vision Bridge handling for OpenAI Responses requests used by Codex CLI/Desktop.

Responses requests carry user content in input with input_text and input_image parts. Vision Bridge previously inspected only messages, so it returned before processing the image and the downstream combo capability filter failed closed with 400 capability_mismatch.

Changes

  • accept Responses input as a Vision Bridge request container
  • recognize input_text for task-aware prompting
  • replace described Responses images with input_text
  • preserve Chat Completions behavior and native request container shape
  • preserve the existing fail-closed combo vision policy
  • add the required changelog.d/fixes/10202-responses-vision-bridge.md fragment

Validation

Validated after reconciliation onto release/v3.8.50 at f1eb0b835722ca744692834c84661f1bc8d564a6.

Repository-wide base conditions observed during validation:

  • check:docs-sync remains red because the base CHANGELOG.md starts with ## [3.8.50] — TBD rather than ## [Unreleased]; this PR changes none of the docs-sync inputs (docs_sync_input_delta_count=0)
  • check:file-size remains red for ModelSelectModal.tsx and providers/apikey/gateways.ts; this PR changes none of those file-size inputs (file_size_input_delta_count=0)

Both were causally classified as inherited base-red conditions, with zero #9597-caused regressions.

Fixes #9597

@Zartharas
Zartharas force-pushed the fix/codex-responses-vision-bridge-9597 branch from c882e42 to 5736326 Compare August 12, 2026 20:44
@Zartharas
Zartharas marked this pull request as ready for review August 12, 2026 21:49
@diegosouzapw
diegosouzapw merged commit dc185e5 into cheaper-inference:release/v3.8.50 Aug 13, 2026
13 checks passed
@diegosouzapw

Copy link
Copy Markdown
Collaborator

Merged into release/v3.8.50 — thank you @Zartharas for the contribution! It was validated on a combined merge-train (static gates + affected tests + vitest) together with 30 sibling PRs before landing.

@Zartharas
Zartharas deleted the fix/codex-responses-vision-bridge-9597 branch September 24, 2026 13:26
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…aper-inference#10202)

* fix(guardrails): bridge Responses input images

* docs(changelog): add cheaper-inference#10202 Vision Bridge fix fragment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(guardrails): Vision Bridge never fires for Codex CLI /v1/responses (input/input_image) — combo fails closed with 400 capability_mismatch

2 participants