GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tui: attached image path is omitted from model context · Issue #41454 · anomalyco/opencode

tui: attached image path is omitted from model context #41454

New issue
Copy link
New issue
Copy link
Closed
#59833
Closed
tui: attached image path is omitted from model context#41454
#59833
Copy link
Labels
2.0bugSomething isn't working

Description

@opencode-agent
opencode-agent
bot
opened on Aug 9, 2026
Issue body actions

Summary

In OpenCode V2, an image attachment is shown in the TUI with its filename, but the model receives only an image placeholder/content and cannot see the attachment's path or original filename. This prevents the agent from referring to or operating on the attached image as a local file.

Environment

  • opencode version: Unavailable: screenshot does not show a version
  • OS: Unavailable: not provided
  • Terminal: Unavailable: not provided
  • Shell: Unavailable: not provided
  • Install/channel: OpenCode V2 build
  • Active plugins: Unavailable: not provided

Reproduction

  1. Attach a local image to a prompt in the V2 TUI.
  2. Observe that the attachment chip displays its filename (for example, IMG_3480.JPG).
  3. Ask the agent whether it can see the image path or original filename.

Expected Behavior

The model context should include the attachment's path or original filename alongside the image content, allowing the agent to identify and reference the local file.

Actual Behavior

The agent can inspect the attached image as [Image 1], but reports that no filesystem path or original filename is exposed to it and that the image is not automatically available to scripts.

Additional Context

Reproduced in an OpenCode V2 build. The TUI visibly retains the filename, so the metadata appears to be dropped when constructing model input rather than during attachment ingestion.

Requested by: @R44VC0RP (vogel via Slack)

Activity

  1. opencode-agent
    added
    bugSomething isn't working
    2.0
    on Aug 9, 2026
  2. cakeni commented on Aug 9, 2026

    @cakeni
    cakeni
    on Aug 9, 2026
    More actions

    I will work on this. I am tracing the V2 TUI local attachment metadata through the prompt request and will add a focused regression test before changing the model input conversion.

  3. cestercian commented on Sep 17, 2026

    @cestercian
    cestercian
    on Sep 17, 2026
    Contributor
    More actions

    Taking a look at including the attached image path/filename in the model context for V2 attachments.

  4. K0nigsberg
    added 2 commits that reference this issue on Oct 15, 2026

    fix(tui): paste local images as file:// attachments

    This issue will close once commit 9296e12 is merged into the 'dev' branch.
    9296e12

    fix(tui): embed pasted images and carry path in description

    This issue will close once commit 79ef593 is merged into the 'dev' branch.
    79ef593
  5. rekram1-node
    closed this as completedin #59833on Oct 28, 2026
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

    2.0bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.