Skip to content

fix(read): image/pdf reads mark instructions as loaded without emitting system-reminder #33823

Closed as not planned

Description

@vishnu-lab

Description

Descripton

read on image/PDF sets metada.loaded but does not emit <system-reminder> with resolved instruction content.
This can cause instruction dedupe to skip later attachment of AGENTS.md even though the model never saw those instructions.

Plugins

None

OpenCode version

dev (local: 336d28f11)

Steps to reproduce

  1. Add subdir/AGENTS.md with unique instruction.
  2. In same session, ask opencode to invoke read on subdir/nested/image.png (or PDF).
  3. Then run read on subdir/nested/index.ts.
  4. Compare with skipping step 2.

Screenshot and/or share link

No response

Operating System

macOS 26 arm64

Terminal

iterm2

Activity

  1. vishnu-lab commented on Jun 25, 2026

    @vishnu-lab
    Author

    can i take up this issue and fix it?

  2. github-actions commented on Aug 25, 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