Skip to content

Skip clipboard image capture for models without vision support #258

Description

@yxlyx

Problem

When the selected model does not support image input and a user pastes an image placeholder ([Image]), the UI still attempts to capture an image from the clipboard. If capture has not succeeded, it shows:

no image on the clipboard — copy an image first (this is Ctrl-V; ⌘V can't be captured)

This is misleading for non-vision models: it asks the user to go back and copy an image even though that model cannot accept one anyway.

Expected behavior

Check the selected model's image/vision capability before starting clipboard image capture. If the model cannot process images, immediately tell the user that image input is unsupported and do not show the clipboard-specific “copy an image first” message.

Acceptance criteria

  • Pasting [Image] while using a non-vision model immediately shows an “images are not supported by this model” message.
  • The clipboard capture flow is not started for non-vision models.
  • The “no image on the clipboard — copy an image first” message is shown only when the selected model supports images but no image was captured.
  • Vision-capable models retain the existing image paste/capture behavior.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions