[BUG] Azure gpt-5.2-codex (vision-capable) is unable to read screenshots #7269

Open
opened 2026-02-16 18:06:39 -05:00 by yindo · 2 comments
Owner

Originally created by @shawnsw on GitHub (Jan 22, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Bug

When using an Azure-hosted gpt-5.2-codex model in OpenCode TUI, image inputs do not appear to reach the model.
The UI shows an attached/pasted image (e.g. img / clipboard), but the model only receives a textual placeholder like [Image 1] and responds as if no image was provided.
This looks like OpenCode request-shaping / routing dropping image parts for this model/provider combination.

Environment

  • OpenCode version: 1.1.33
  • OS: macOS (26.2)
  • Interface: OpenCode TUI
  • Provider: Azure
  • Model: gpt-5.2-codex (vision-capable)

Expected

The model describes what is in the screenshot.

Actual

The model behaves as if no image was provided (only a placeholder like [Image 1]).

OpenCode version

1.1.33

Steps to reproduce

  1. Start OpenCode TUI.
  2. Select the Azure gpt-5.2-codex model.
  3. Paste or attach a screenshot in the input (confirm the UI indicates an image is attached).
  4. Ask the model to describe the screenshot.

Screenshot and/or share link

Image

Operating System

macOS 26.2

Terminal

Warp

Originally created by @shawnsw on GitHub (Jan 22, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ## Bug When using an Azure-hosted `gpt-5.2-codex` model in OpenCode TUI, image inputs do not appear to reach the model. The UI shows an attached/pasted image (e.g. `img` / `clipboard`), but the model only receives a textual placeholder like `[Image 1]` and responds as if no image was provided. This looks like OpenCode request-shaping / routing dropping image parts for this model/provider combination. ## Environment - OpenCode version: 1.1.33 - OS: macOS (26.2) - Interface: OpenCode TUI - Provider: Azure - Model: gpt-5.2-codex (vision-capable) ## Expected The model describes what is in the screenshot. ## Actual The model behaves as if no image was provided (only a placeholder like `[Image 1]`). ### OpenCode version 1.1.33 ### Steps to reproduce 1. Start OpenCode TUI. 2. Select the Azure `gpt-5.2-codex` model. 3. Paste or attach a screenshot in the input (confirm the UI indicates an image is attached). 4. Ask the model to describe the screenshot. ### Screenshot and/or share link <img width="1028" height="545" alt="Image" src="https://github.com/user-attachments/assets/0c49a528-fe70-4f88-a705-929223f788fb" /> ### Operating System macOS 26.2 ### Terminal Warp
yindo added the bug label 2026-02-16 18:06:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 22, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9375: [BUG] Image paste fails only on Azure GPT-5.2-Codex (File not found / [Image 1] not processed) - Reports the exact same problem with Azure gpt-5.2-codex where images appear attached in the UI but the model receives only a [Image 1] placeholder and fails to process images
  • #5359: Unable to read images for some models - Reports similar image reading failures across different model configurations

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 22, 2026): This issue might be a duplicate of existing issues. Please check: - #9375: [BUG] Image paste fails only on Azure GPT-5.2-Codex (File not found / [Image 1] not processed) - Reports the exact same problem with Azure gpt-5.2-codex where images appear attached in the UI but the model receives only a [Image 1] placeholder and fails to process images - #5359: Unable to read images for some models - Reports similar image reading failures across different model configurations Feel free to ignore if none of these address your specific case.
Author
Owner

@LNS2905 commented on GitHub (Jan 23, 2026):

did you know how to fix

@LNS2905 commented on GitHub (Jan 23, 2026): did you know how to fix
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7269