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 — feat(ui): display image attachments from tool results by neilli418 · Pull Request #21352 · anomalyco/opencode

Conversation

@neilli418

@neilli418 neilli418 commented Apr 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Issue for this PR

Closes #21227

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Tool results can include image attachments (typed as FilePart with an image mime type), but the UI currently doesn't display them. This PR adds clickable image thumbnails below completed tool results.

How did you verify your code works?

Tested with MCP tools and the built-in webfetch tool that return image attachments. Verified:

  • Thumbnails appear below the tool result when images are present
  • Clicking opens full-size preview in the dialog
  • Non-image attachments are unaffected
  • No rendering when tool is still running

Screenshots / recordings

Screenshot 2026-04-07 at 11 17 25 AM Screenshot 2026-04-07 at 11 17 12 AM Screenshot 2026-04-07 at 11 30 47 AM

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rasperepodvipodvert, pmus, bernhardberger, and mausch reacted with thumbs up emoji bernhardberger reacted with rocket emoji
All reactions
  • 👍 4 reactions
  • 🚀 1 reaction
neilli0 and others added 2 commits April 7, 2026 10:54
@neilli0
feat(ui): display image attachments from tool results
8246a28
@neilli418
Merge branch 'dev' into feat/tool-result-image-display
2a6bec9
@opencode-agent
opencode-agent Bot force-pushed the dev branch from 2f2ed11 to 9f201d6 Compare April 16, 2026 21:55
@rekram1-node

rekram1-node commented May 15, 2026

Copy link
Copy Markdown
Member

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

pmus and bernhardberger reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node rekram1-node closed this May 15, 2026
@rekram1-node rekram1-node added the automated-pr-cleanup label May 15, 2026
@rasperepodvipodvert

rasperepodvipodvert commented May 19, 2026

Copy link
Copy Markdown

Auto-closed by the cleanup bot rather than on review — CI passed 11/11 and the implementation directly addresses #21227. Could a maintainer reopen for review?

bernhardberger reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bernhardberger

bernhardberger commented May 29, 2026

Copy link
Copy Markdown

I’m hitting this in OpenCode web: image attachments from tool results are not rendered in the chat UI, so the practical workaround is exposing the image through a temporary URL and pasting a link.

#21352 looks like the narrow UI fix for this general class of tool-result image attachments. I checked it against current dev today (b2a06351b) and it still merges conflict-free; the patch only touches packages/ui/src/components/message-part.tsx and packages/ui/src/components/message-part.css.

Since this was auto-closed rather than reviewed/rejected, could it be reopened for review? Happy to help test or open a fresh rebased PR if maintainers prefer.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bernhardberger bernhardberger mentioned this pull request May 29, 2026
[FEATURE(app)]: display image attachments from tool results in chat UI #21227
Closed
1 task done
@johnwmail

johnwmail commented Jun 8, 2026

Copy link
Copy Markdown

Please review and don't close

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

automated-pr-cleanup

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE(app)]: display image attachments from tool results in chat UI

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@neilli418 @rekram1-node @rasperepodvipodvert @bernhardberger @johnwmail @neilli0
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.