Skip to content

[BUG] ai is saying that it can't read a pdf. but the model is support it. #9825

Closed as not planned

Description

@TheFpiasta

Description

I use the opencode deskop app. today downloaded. so it is the latest version.

when using gpt 5.2 the model is refusing to read any pdf. the model supports pdf reading. see

"Only models that support both text and image inputs [...]" https://platform.openai.com/docs/guides/pdf-files
"Input: Text, image" https://platform.openai.com/docs/models/gpt-5.2

In Claude code I can say: "read the pdf" an it reads the pdf.... why is opencode refusing to read pdfs?

Plugins

No response

OpenCode version

latest from 21.01.2026

Steps to reproduce

  1. open open code app
  2. use gpt 5.2 thats supports text and image input (aka also pdf)
  3. try to read in the pdf with the agent ... it refuses ... it rey to extract teh text

Screenshot and/or share link

No response

Operating System

windows 11

Terminal

No response

Activity

  1. github-actions commented on Jan 21, 2026

    @github-actions
    Contributor

    This issue might be related to existing image/file handling issues. Please check:

    These issues suggest there may be underlying problems with how OpenCode handles file/image inputs with GPT-5.2 models.

    Feel free to ignore if your specific case with PDF reading is different from image pasting issues.

  2. AndreMonthy commented on Feb 12, 2026

    @AndreMonthy

    I have the same issue with Kimi K2.5 via NVIDIA Build API.

  3. kaanaksit commented on Mar 14, 2026

    @kaanaksit

    Indeed this is not a fix.But I strictly state the agent that include_full_text=true is needed with pdf-reader tool for full text extraction from a PDF. It works when I do that.

    Image
  4. removed
    bugSomething isn't working
    webRelates to opencode on web / desktop
    on May 3, 2026
  5. github-actions commented on Jul 6, 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