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 — Clipboard images routed directly to model instead of MCP when model lacks vision support · Issue #18437 · anomalyco/opencode

Clipboard images routed directly to model instead of MCP when model lacks vision support #18437

New issue
Copy link
New issue
Copy link
Closed
Closed
Clipboard images routed directly to model instead of MCP when model lacks vision support#18437
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Description

@zj021121-arch
zj021121-arch
opened on Mar 20, 2026
Issue body actions

Description

Problem

When a clipboard image is received and the current model does not support image input, opencode attempts to attach the image directly to the model and fails with:

ERROR: Cannot read "image.png" (this model does not support image input)

This happens before any agent code can intercept the image and route it to the minimax_search_understand_image MCP tool.

Expected Behavior

There should be a config option or automatic fallback to route clipboard images directly to the minimax_media MCP's minimax_search_understand_image tool instead of passing them to the language model.

Workaround (insufficient)

Adding AGENTS.md rules to intercept clipboard images doesn't help because opencode itself tries to attach the image to the model before agent code runs.

Suggested Fixes

  1. Add a config option like imageInput: "mcp" to route images to MCP when model lacks vision
  2. Add automatic MCP fallback when model doesn't support image attachments
  3. Provide a way to disable native image attachment handling

Plugins

Mini Max 2.7 Image Mcp

OpenCode version

1.2.27 I think

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Reacted by PVL

Activity

  1. zj021121-arch
    added
    bugSomething isn't working
    on Mar 20, 2026
  2. github-actions
    assigned
    rekram1-node
    on Mar 20, 2026
  3. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 20, 2026
  4. github-actions commented on Mar 20, 2026

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

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

    • [FEATURE]:Pasted images use data: URL instead of file path, breaking MCP tools for non-vision models #14673: Pasted images use data: URL instead of file path, breaking MCP tools for non-vision models — same core problem of clipboard images not being usable by MCP tools when the model lacks vision support
    • [FEATURE]:opencode桌面版和CLI都不支持剪切板粘贴的图片调用图片识别的mcp #17771: opencode doesn't support routing clipboard-pasted images to image-recognition MCP tools — also describes clipboard images not being routed to MCP tools for non-vision models

    Please review these issues and comment if yours is distinct. If it is a duplicate, consider closing this one and adding your details to the existing issue.

  5. zhongruan0522 commented on Mar 21, 2026

    @zhongruan0522
    zhongruan0522
    on Mar 21, 2026
    More actions

    I encountered the same problem when using GLM-5, but I had deployed a separate NewAPI instance, forked it, and had NewAPI convert the incoming image into a URL. I also specified in AGENTS.MD that xxxMCP should be used for image understanding.

    (The above was translated into English using Google Translate.)

  6. jensenojs commented on Apr 3, 2026

    @jensenojs
    jensenojs
    on Apr 3, 2026
    Contributor
    More actions

    same problem with mimo v2 pro + mimo omni

  7. zhongruan0522 commented on Apr 3, 2026

    @zhongruan0522
    zhongruan0522
    on Apr 3, 2026
    More actions

    MIMO V2 Pro + MIMO Omni 也有同样的问题

    小米的不本来就是多模态吗

  8. jensenojs commented on Apr 7, 2026

    @jensenojs
    jensenojs
    on Apr 7, 2026
    Contributor
    More actions

    MIMO V2 Pro + MIMO Omni 也有同样的问题

    小米的不本来就是多模态吗

    Omni 是, 但 V2 pro并不是啊

  9. zj021121-arch
    closed this as completedon Apr 10, 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 workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

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.