opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Tool output preview

Open rakibdev opened this issue 1 month ago • 6 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently we can't see what it's getting from webfetch or any other tool calls. Sometimes webfetch can have 404 content but AI doesn't mention. It would be helpful if right clicking tool calls opens a preview dialog Similar to Claude Code's Ctrl+O but Dialog UI is an advantage here. I've a implementation if you're interested.

Image Image

rakibdev avatar Dec 11 '25 05:12 rakibdev

This issue is related to existing feature request #1816 about improving tool output visibility. That issue proposes auto-collapse/expand functionality for large outputs with keyboard shortcuts.

While your suggestion focuses on a preview dialog for tool output (particularly useful for seeing hidden content like 404 responses), #1816 addresses a complementary concern about managing large outputs in the UI.

You may want to check that issue to see if the proposed solutions could work together or if there are any relevant discussions about tool output visibility.

github-actions[bot] avatar Dec 11 '25 05:12 github-actions[bot]

Why not just normal clicking on it?

rekram1-node avatar Dec 11 '25 06:12 rekram1-node

I do like the idea btw

rekram1-node avatar Dec 11 '25 06:12 rekram1-node

Why not just normal clicking on it?

my bad. meant to write "left". normal click yes. ensuring that default modifier key behavior doesn't break. for example, 'Ctrl + Click' opens file in VS Code.

rakibdev avatar Dec 11 '25 07:12 rakibdev

i think pr would be welcome here

rekram1-node avatar Dec 13 '25 22:12 rekram1-node