Skip to content

[BUG] Non-vision models fail even when user only sends text - OpenCode auto-reads clipboard images #26668

Closed as not planned

Description

@gamilwcy

Description

Bug Description

When using a non-vision model (e.g., DeepSeek V4 Flash), users cannot send plain text messages because OpenCode automatically reads images from the clipboard and tries to send them to the model, even when the user hasn't attached any images.

Steps to Reproduce

  1. Configure DeepSeek V4 Flash model (non-vision)
  2. Copy an image to clipboard (screenshot, etc.)
  3. Type a text-only message in OpenCode (no image attached)
  4. Submit the message
  5. Error: "Cannot read 'clipboard' (this model does not support image input)."

Expected Behavior

  • OpenCode should NOT automatically read clipboard images when user only sends text
  • Or provide a config option to disable auto clipboard image reading

Actual Behavior

  • Even with no image attached to the message, OpenCode reads clipboard and fails
  • Other models (e.g., minimax-m2.5-free) work fine because they might handle this differently

Evidence

Error message shown:
ERROR: Cannot read "clipboard" (this model does not support image input). Inform the user.
Note: The user never attached any image - it was purely a text message.

Environment

  • OpenCode: 1.14.46
  • OS: macOS
  • Model: deepseek-v4/deepseek-v4-flash
  • Provider: DeepSeek API

Related Issues


Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 10, 2026

    @github-actions
    Contributor

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

    If the underlying issue is still unresolved or has regressed, please mention that in a comment so maintainers can track it appropriately.

  2. github-actions commented on Jul 10, 2026

    @github-actions
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions