opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: tool output preview

Open rakibdev opened this issue 4 weeks ago • 6 comments

Closes https://github.com/sst/opencode/issues/5358

  • respects scroll_speed config inside dialog
  • doesn't prevent default ctrl+click behavior when clicking tool (opening file)

rakibdev avatar Dec 19 '25 22:12 rakibdev

may wanna merge dev into ur branch, i fixed a test

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

done

rakibdev avatar Dec 20 '25 07:12 rakibdev

There are some changes shipping soon that may cause conflicts (most likely won't) but once they ship in I will give this more through review.

I'm wondering, should they be dialogs? Or should they be inlined like an expanded state? That u could open and close ofc

rekram1-node avatar Dec 21 '25 05:12 rekram1-node

Also can u attach screenshots / videos for changes u make?

rekram1-node avatar Dec 21 '25 05:12 rekram1-node

https://github.com/user-attachments/assets/9e2e241b-09e5-45b6-b3b9-8df212f41e1c

I'm wondering, should they be dialogs? Or should they be inlined like an expanded state

Dialog is straightforward, requires minimal changes, doesn't shift layout or push contents down and outputs are mostly wall of text. Expand/collapse accordion needs more thought from UX perspective when tool calls are grouped.

image

rakibdev avatar Dec 22 '25 08:12 rakibdev