GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] Image paste fails only on Azure GPT-5.2-Codex (File not found / [Image 1] not processed) · Issue #9375 · anomalyco/opencode

[BUG] Image paste fails only on Azure GPT-5.2-Codex (File not found / [Image 1] not processed) #9375

New issue
Copy link
New issue
Copy link
Closed
Closed
[BUG] Image paste fails only on Azure GPT-5.2-Codex (File not found / [Image 1] not processed)#9375
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't workingwindows

Description

@InCerryGit
InCerryGit
opened on Jan 19, 2026
Issue body actions

Description

Description

When using Azure GPT-5.2-Codex (gpt-5.2-codex on Azure) in OpenCode, pasting an image from the clipboard fails.

Image

After I paste an image (e.g., screenshot → Ctrl+V), the TUI inserts a placeholder like:

[Image 1]

But when I send the message, OpenCode attempts to read a local file named Image 1 and fails with an error similar to:

Error: File not found: ...\Image 1

As a result, the image is not processed/recognized.

This issue happens only with Azure GPT-5.2-Codex. If I switch to GPT-5.2 (non-codex), everything works normally and the pasted image is processed correctly.

Suspected cause: This looks like a model/API integration issue specific to Azure GPT-5.2-Codex, where the image/file part is not being sent/handled correctly and only the [Image 1] placeholder text remains, causing downstream logic to treat it as a local filename.

Steps to reproduce

  1. Start OpenCode and select Azure GPT-5.2-Codex.
  2. Copy an image to clipboard (e.g., take a screenshot).
  3. Paste into OpenCode input (Ctrl+V) → [Image 1] appears.
  4. Send the prompt.
  5. Observe OpenCode tries to read Image 1 as a local file and fails with File not found.
  6. Switch to GPT-5.2 (non-codex) and repeat → works as expected.

Expected behavior

Pasted clipboard images should be transmitted to the model and processed normally (image recognition works).

Actual behavior

Only the [Image 1] placeholder is present at send time; OpenCode tries to read a local file named Image 1 and errors with File not found.

Screenshot / Logs

(Attach screenshot here showing the “Read Image 1” + “File not found: ...\Image 1” error.)

Environment

  • OpenCode version:
  • OS:
  • Azure model: gpt-5.2-codex
  • Terminal:
  • Plugins: <fill in / none>

Plugins

no

OpenCode version

1.1.25

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Powershell

Reacted by Ihab Zhaika

Activity

  1. InCerryGit
    added
    bugSomething isn't working
    on Jan 19, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 19, 2026
  3. github-actions
    added
    windows
    on Jan 19, 2026
  4. github-actions commented on Jan 19, 2026

    @github-actions
    github-actionsBot
    on Jan 19, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Unable to read images for some models #5359: Unable to read images for some models - Reports image reading failures with certain backends/models
    • AI_APICallError - base64 encoded image pasted #4983: AI_APICallError - base64 encoded image pasted - Related to image encoding and transmission issues
    • In Memory Image can't be Pasted in Opencode After TUI Upgrade. #4077: In Memory Image can't be Pasted in Opencode After TUI Upgrade - Clipboard image pasting failures
    • Azure OpenAI need to change completions -> responses #7180: Azure OpenAI need to change completions -> responses - Azure API endpoint changes that may affect Azure GPT models
    • MCP invalid schema in gpt-5.2-codex #8423: MCP invalid schema in gpt-5.2-codex - Other issues specific to gpt-5.2-codex model

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

  5. chiangleoi commented on Jan 20, 2026

    @chiangleoi
    chiangleoi
    on Jan 20, 2026
    More actions

    @InCerryGit 请问,opencode 如何链接 azure gpt5.2-codex ? 我选择这个模型的时候只让我填写了 key,没有配置 endpoint 等信息的地方

  6. InCerryGit commented on Jan 20, 2026

    @InCerryGit
    InCerryGit
    on Jan 20, 2026
    Author
    More actions

    @InCerryGit 请问,opencode 如何链接 azure gpt5.2-codex ? 我选择这个模型的时候只让我填写了 key,没有配置 endpoint 等信息的地方

    文档中写了,配置环境变量即可 https://opencode.ai/docs/providers/#azure-openai

    Reacted by LeoPapa
    Reacted by LeoPapa
  7. Ihab-Zhaika commented on Jan 25, 2026

    @Ihab-Zhaika
    Ihab-Zhaika
    on Jan 25, 2026
    More actions

    Having same issue

    Image Image
  8. Ihab-Zhaika commented on Jan 25, 2026

    @Ihab-Zhaika
    Ihab-Zhaika
    on Jan 25, 2026
    More actions

    @InCerryGit try this [in provider]

    "azure": {
      "models": {
        "gpt-5.2-codex": {
          "name": "GPT-5.2 Codex",
          "limit": { "context": 400000, "output": 128000 },
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
           "variants": {
            "low": { "reasoningEffort": "low" },
            "medium": { "reasoningEffort": "medium" },
            "high": { "reasoningEffort": "high" },
            "xhigh": { "reasoningEffort": "xhigh" }
          },
    	  "supportsVision": true,
    	  "useResponsesAPI": true
        }
      }
    }
    

    the thing that solved it is
    "supportsVision": true,
    "useResponsesAPI": true

    you can add PR to support it in the code

    Reacted by punto, InCerryGit and luck
  9. github-actions commented on Mar 27, 2026

    @github-actions
    github-actionsBot
    on Mar 27, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  10. github-actions
    closed this as completedon Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.