Skip to content

Read tool fails to process images with direct Anthropic provider (Claude Opus 4) on v1.2.15 #15566

Closed as not planned

Description

@disolaterX

Description

The Read tool fails to read image files with the error "Could not process image" when using Claude Opus 4 via the direct Anthropic provider. The model supports image input, but the Read tool's modality check appears to reject it.

Environment

  • OpenCode version: 1.2.15
  • Provider: Anthropic (direct, no proxy)
  • Model: anthropic/claude-opus-4-6
  • OS: macOS
  • Plugin: oh-my-opencode@latest

Steps to Reproduce

  1. Configure OpenCode with direct Anthropic provider and Claude Opus 4
  2. Have any image file (PNG, JPG, etc.) in the working directory
  3. Ask the model to read the image file using the Read tool
  4. Read tool returns an error about not being able to process the image

Expected Behavior

The Read tool should detect that Claude Opus 4 supports image input and return the base64-encoded image as an attachment.

Actual Behavior

Read tool rejects the image with a "could not process image" error.

Related Issues

This appears to be a regression or incomplete fix in the modality detection logic for direct Anthropic provider models.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 1, 2026
  2. github-actions commented on Mar 1, 2026

    @github-actions
    Contributor

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

    If your issue is specifically about the Read tool path rather than drag-and-drop, it may still be distinct from #14289 and worth tracking separately, but please review those first.

  3. assigned and unassigned on Apr 26, 2026
  4. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 3, 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